Interface CreationalContext<T>

Type Parameters:
T - type of the instances on which this CreationalContext operates

public interface CreationalContext<T>

Provides operations that are used by the Contextual implementation during instance creation and destruction.

Author:
Gavin King, Pete Muir
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    void
    push(T incompleteInstance)
    Registers an incompletely initialized contextual instance the with the container.
    void
    Destroys all dependent objects of the instance which is being destroyed, by passing each dependent object to Contextual.destroy(Object, CreationalContext) .
  • Method Details Link icon

    • push Link icon

      void push(T incompleteInstance)
      Registers an incompletely initialized contextual instance the with the container. A contextual instance is considered incompletely initialized until it is returned by Contextual.create(CreationalContext) .
      Parameters:
      incompleteInstance - the incompletely initialized instance
    • release Link icon

      void release()
      Destroys all dependent objects of the instance which is being destroyed, by passing each dependent object to Contextual.destroy(Object, CreationalContext) .