Interface Factory<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void dispose​(T instance)
      This method will dispose of objects created with this scope.
      T provide()
      This method will create instances of the type of this factory.
    • Method Detail

      • provide

        T provide()
        This method will create instances of the type of this factory. The provide method must be annotated with the desired scope and qualifiers.
        Returns:
        The produces object
      • dispose

        void dispose​(T instance)
        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
        Parameters:
        instance - The instance to dispose of