public interface CreationalContext<T>
@ApplicationScoped class Foo
{
@Current Bar _bar;
}
@ApplicationScoped class Bar
{
@Current Foo _bar;
}
Generally it is used for prohibiting the circular references of the webbeans.
Modifier and Type | Method and Description |
---|---|
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.
|
void push(T incompleteInstance)
incompleteInstance
- incomplete webbeans instancevoid release()
Copyright © 2016. All rights reserved.