Interface InstanceFactory<T>

Type Parameters:
T - the type of the generated class.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface InstanceFactory<T>
Represents the factory which can be used to obtain new instances of generated rpc classes.
Since:
4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Constructs a new instance of the underlying class, using the given arguments for the constructor invocation of the class.
  • Method Details

    • newInstance

      @NonNull T newInstance(@NonNull @NonNull Object... args)
      Constructs a new instance of the underlying class, using the given arguments for the constructor invocation of the class.
      Parameters:
      args - the arguments for the constructor.
      Returns:
      a new instance of the underlying class.
      Throws:
      NullPointerException - if the given arguments are null.