Class FactoryWithFalseProxy

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

@Service @Singleton public class FactoryWithFalseProxy extends Object implements Factory<Object>
  • Constructor Details

    • FactoryWithFalseProxy

      public FactoryWithFalseProxy()
  • Method Details

    • provide

      @Singleton @UseProxy(false) public Object 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<Object>
      Returns:
      The produces object
    • dispose

      public void dispose(Object 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<Object>
      Parameters:
      instance - The instance to dispose of