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

    • 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