Class FactoryWithDefaultProxyForSameScope

java.lang.Object
org.jvnet.hk2.metadata.tests.FactoryWithDefaultProxyForSameScope
All Implemented Interfaces:
Factory<List<String>>

@Service public class FactoryWithDefaultProxyForSameScope extends Object implements Factory<List<String>>
  • Constructor Details

    • FactoryWithDefaultProxyForSameScope

      public FactoryWithDefaultProxyForSameScope()
  • Method Details

    • provide

      @ProxyForSameScope public List<String> provide()
      Description copied from interface: Factory
      This method will create instances of the type of this factory. The provide method must be annotated with the desired scope and qualifiers.
      Specified by:
      provide in interface Factory<List<String>>
      Returns:
      The produces object
    • dispose

      public void dispose(List<String> instance)
      Description copied from interface: Factory
      This method will dispose of objects created with this scope. This method should not be annotated, as it is naturally paired with the provide method
      Specified by:
      dispose in interface Factory<List<String>>
      Parameters:
      instance - The instance to dispose of