Class FactoryWithFalseProxyForSameScope

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

@Service public class FactoryWithFalseProxyForSameScope extends Object implements Factory<Map<String,List<String>>>
  • Constructor Details

    • FactoryWithFalseProxyForSameScope

      public FactoryWithFalseProxyForSameScope()
  • Method Details

    • provide

      @ProxyForSameScope(false) public Map<String,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<Map<String,List<String>>>
      Returns:
      The produces object
    • dispose

      public void dispose(Map<String,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<Map<String,List<String>>>
      Parameters:
      instance - The instance to dispose of