Class InstanceSupplier.NewInstance<T>

java.lang.Object
io.helidon.microprofile.grpc.core.InstanceSupplier.NewInstance<T>
Type Parameters:
T - the type of instance supplied
All Implemented Interfaces:
Supplier<T>
Enclosing interface:
InstanceSupplier

public static class InstanceSupplier.NewInstance<T> extends Object implements Supplier<T>
A Supplier implementation that supplies new instances of a class each time its Supplier.get() method is called.
  • Constructor Details

    • NewInstance

      protected NewInstance(Class<T> instanceClass)
  • Method Details

    • get

      public T get()
      Specified by:
      get in interface Supplier<T>