Class SupplierFactoryAdapter<T>

All Implemented Interfaces:<T>

@Private public class SupplierFactoryAdapter<T> extends Object implements<T>
Use a Supplier of type T as a Factory that provides instances of T. Modeled after Jersey's internal implementation.
  • Field Details

  • Constructor Details

  • Method Details

    • provide

      public T provide()
      Specified by:
      provide in interface<T>
    • dispose

      public void dispose(T instance)
      Specified by:
      dispose in interface<T>