|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.orchestra.conversation.AccessScopeManager
public class AccessScopeManager
Manager to deal with page scoped beans.
Instances of this type are expected to be request-scoped, ie a new instance is used for each request. The AccessScopeManagerConfiguration object that it references can be of application scope.
Constructor Summary | |
---|---|
AccessScopeManager()
|
Method Summary | |
---|---|
void |
addConversationAccess(java.lang.String conversationName)
Add a conversation to the list of accessed conversations. |
void |
beginRecording()
This is invoked at the point in the request lifecycle after which we want to start tracking use of access-scoped objects. |
AccessScopeManagerConfiguration |
getAccessScopeManagerConfiguration()
|
static AccessScopeManager |
getInstance()
|
boolean |
isConversationAccessed(java.lang.String name)
|
boolean |
isIgnoreRequest()
|
void |
setAccessScopeManagerConfiguration(AccessScopeManagerConfiguration accessScopeManagerConfiguration)
|
void |
setIgnoreRequest()
Suppress access scope for the current request, ie do not terminate conversations that are not accessed by this request. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessScopeManager()
Method Detail |
---|
public static AccessScopeManager getInstance()
public AccessScopeManagerConfiguration getAccessScopeManagerConfiguration()
public void setAccessScopeManagerConfiguration(AccessScopeManagerConfiguration accessScopeManagerConfiguration)
public void beginRecording()
public void addConversationAccess(java.lang.String conversationName)
This method is expected to be called via AOP proxies wrapped around each conversation-scoped bean; any invocation of a method on such a bean causes the conversation associated with that bean to be added to the accessed list here.
public boolean isIgnoreRequest()
public void setIgnoreRequest()
This can come in useful occasionally, particularly when handling AJAX requests which only access some of the beans associated with the current view.
public boolean isConversationAccessed(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |