Class Instance.NewInstance<T>

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

public static class Instance.NewInstance<T> extends Object implements Supplier<T>
A Supplier implementation that supplies new instances of a class each time its 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>