- 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.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Registers an incompletely initialized contextual instance the with the container.void
release()
Destroys all dependent objects of the instance which is being destroyed, by passing each dependent object toContextual.destroy(Object, CreationalContext)
.
-
Method Details
-
push
Registers an incompletely initialized contextual instance the with the container. A contextual instance is considered incompletely initialized until it is returned byContextual.create(CreationalContext)
.- Parameters:
incompleteInstance
- the incompletely initialized instance
-
release
void release()Destroys all dependent objects of the instance which is being destroyed, by passing each dependent object toContextual.destroy(Object, CreationalContext)
.
-