Class AbstractComplexFactory<E,​F,​G,​H>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose​(F instance)
      This method will dispose of objects created with this scope.
      F provide()
      In the end this should be returning SomeInterface
      • Methods inherited from class java.lang.Object

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

      • AbstractComplexFactory

        public AbstractComplexFactory()
    • Method Detail

      • provide

        public F provide()
        In the end this should be returning SomeInterface
        Specified by:
        provide in interface Factory<E>
        Returns:
        The produces object
      • dispose

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