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


public interface CreationalContext<T>

The CreationalContext holds incomplete Bean instances. This may be caused by a situation like in the following example: @ApplicationScoped class Foo { @Current Bar _bar; } @ApplicationScoped class Bar { @Current Foo _bar; }

Generally it is used for prohibiting the circular references of the webbeans.

Version:
$Rev: 815435 $ $Date: 2009-09-15 20:18:44 +0200 (Tue, 15 Sep 2009) $

Method Summary
 void push(T incompleteInstance)
          Puts new incomplete instance into the creational context.
 void release()
          Destorys all dependent objects of the instance that is being destroyed.
 

Method Detail

push

void push(T incompleteInstance)
Puts new incomplete instance into the creational context.

Parameters:
incompleteInstance - incomplete webbeans instance

release

void release()
Destorys all dependent objects of the instance that is being destroyed.



Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.