|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.flow.cdi.FlowScopedContextImpl
@Typed public class FlowScopedContextImpl
Minimal implementation of FlowScope.
Constructor Summary | |
---|---|
FlowScopedContextImpl(javax.enterprise.inject.spi.BeanManager beanManager,
Map<Class,FlowReference> flowBeanReferences)
|
Method Summary | ||
---|---|---|
protected void |
checkActive(FacesContext facesContext)
Make sure that the Context is really active. |
|
boolean |
destroy(javax.enterprise.context.spi.Contextual bean)
Destroy the Contextual Instance of the given Bean. |
|
static void |
destroyAllActive(ContextualStorage storage)
Destroys all the Contextual Instances in the specified ContextualStorage. |
|
|
get(javax.enterprise.context.spi.Contextual<T> bean)
|
|
|
get(javax.enterprise.context.spi.Contextual<T> bean,
javax.enterprise.context.spi.CreationalContext<T> creationalContext)
|
|
protected ContextualStorage |
getContextualStorage(boolean createIfNotExist,
String clientWindowFlowId)
An implementation has to return the underlying storage which contains the items held in the Context. |
|
String |
getCurrentClientWindowFlowId(FacesContext facesContext)
|
|
protected FlowScopeBeanHolder |
getFlowScopeBeanHolder()
|
|
protected FlowScopeBeanHolder |
getFlowScopeBeanHolder(FacesContext facesContext)
|
|
Class<? extends Annotation> |
getScope()
|
|
boolean |
isActive()
|
|
boolean |
isActive(FacesContext facesContext)
|
|
boolean |
isPassivatingScope()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FlowScopedContextImpl(javax.enterprise.inject.spi.BeanManager beanManager, Map<Class,FlowReference> flowBeanReferences)
Method Detail |
---|
protected FlowScopeBeanHolder getFlowScopeBeanHolder()
protected FlowScopeBeanHolder getFlowScopeBeanHolder(FacesContext facesContext)
public String getCurrentClientWindowFlowId(FacesContext facesContext)
protected ContextualStorage getContextualStorage(boolean createIfNotExist, String clientWindowFlowId)
createIfNotExist
- whether a ContextualStorage shall get created if it doesn't yet exist.
public Class<? extends Annotation> getScope()
getScope
in interface javax.enterprise.context.spi.Context
public boolean isActive()
isActive
in interface javax.enterprise.context.spi.Context
public boolean isActive(FacesContext facesContext)
public boolean isPassivatingScope()
public <T> T get(javax.enterprise.context.spi.Contextual<T> bean)
get
in interface javax.enterprise.context.spi.Context
public <T> T get(javax.enterprise.context.spi.Contextual<T> bean, javax.enterprise.context.spi.CreationalContext<T> creationalContext)
get
in interface javax.enterprise.context.spi.Context
public boolean destroy(javax.enterprise.context.spi.Contextual bean)
bean
- dictates which bean shall get cleaned up
true
if the bean was destroyed, false
if there was no such bean.public static void destroyAllActive(ContextualStorage storage)
protected void checkActive(FacesContext facesContext)
javax.enterprise.context.ContextNotActiveException
- if there is no active
Context for the current Thread.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |