|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.webbeans.context.AbstractContext
org.jboss.webbeans.context.DependentContext
public class DependentContext
The dependent context
Constructor Summary | |
---|---|
DependentContext()
Constructor |
Method Summary | ||
---|---|---|
|
get(Contextual<T> contextual)
Return an existing instance of a contextual type or create a new instance of a contextual type |
|
|
get(Contextual<T> contextual,
CreationalContext<T> creationalContext)
Overridden method always creating a new instance |
|
static DependentContext |
instance()
|
|
void |
setActive(boolean active)
Set the context active, internal API for WBRI |
|
void |
startCollectingDependents(DependentStorageRequest dependentStorageRequest)
Starts collecting dependent instances created by placing in the dependent instances store specified in the request. |
|
void |
stopCollectingDependents(DependentStorageRequest dependentStorageRequest)
Stops collecting dependent instances created. |
|
java.lang.String |
toString()
|
Methods inherited from class org.jboss.webbeans.context.AbstractContext |
---|
getActive, getScopeType, isActive |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DependentContext()
Method Detail |
---|
public static DependentContext instance()
public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContext)
get
in interface Context
T
- the type of contextual typecontextual
- The bean to createcreate
- Should a new one be created
public <T> T get(Contextual<T> contextual)
Context
get
in interface Context
T
- the type of the contextual typecontextual
- the contextual type
public java.lang.String toString()
toString
in class java.lang.Object
public void setActive(boolean active)
AbstractContext
setActive
in class AbstractContext
active
- The new statepublic void startCollectingDependents(DependentStorageRequest dependentStorageRequest)
dependentStorageRequest
- The storage requestpublic void stopCollectingDependents(DependentStorageRequest dependentStorageRequest)
dependentStorageRequest
- The storage request
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |