Interface CreationalContext<T>

  • Type Parameters:
    T - the type of instance this context can produce

    public interface CreationalContext<T>
    Context used to create and destroy instances with injection information.
    • Method Detail

      • get

        T get()
        Gets an instance of type T.

        Throws IllegalStateException when the context was released.

        Returns:
        an instance of type T, can be null
        Throws:
        java.lang.IllegalStateException - when the context was released
      • release

        void release()
        Releases this context. Any dependent objects associated with it will be destroyed. This method is idempotent.