Class FactoryWithFalseProxy

  • All Implemented Interfaces:
    Factory<java.lang.Object>

    @Service
    @Singleton
    public class FactoryWithFalseProxy
    extends java.lang.Object
    implements Factory<java.lang.Object>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose​(java.lang.Object instance)
      This method will dispose of objects created with this scope.
      java.lang.Object provide()
      This method will create instances of the type of this factory.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FactoryWithFalseProxy

        public FactoryWithFalseProxy()
    • Method Detail

      • provide

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

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