javax.enterprise.context.spi
Interface CreationalContext<T>


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
 void push(T incompleteInstance)
          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 to Contextual.destroy(Object, CreationalContext).
 

Method Detail

push

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

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



Submit a bug or feature

Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 4-June-2010 04:34