|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jsieve.CommandStateManager
Thread singleton class CommandStateManager records the state of a Sieve evaluation.
Method Summary | |
protected static CommandStateManager |
computeInstance()
Answers a new instance of the receiver. |
static CommandStateManager |
getInstance()
Returns an instance of the receiver for the current thread, lazily intialised if required. |
protected void |
initialize()
Initialize the receiver. |
boolean |
isHasActions()
Returns the hasActions. |
boolean |
isImplicitKeep()
Returns the implicitKeep. |
boolean |
isInProlog()
Returns the inProlog. |
boolean |
isRejected()
Returns the isRejected. |
static void |
resetInstance()
resets the current CommandStateManager. |
void |
setHasActions(boolean hasActions)
Sets the hasActions. |
void |
setImplicitKeep(boolean implicitKeep)
Sets the implicitKeep. |
void |
setInProlog(boolean inProlog)
Sets the inProlog. |
protected static void |
setInstance(CommandStateManager conditionManager)
Sets the CommandStateManager for the current thread. |
void |
setRejected(boolean isRejected)
Sets the isRejected. |
protected static void |
updateInstance()
Updates the current CommandStateManager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
protected void initialize()
protected static CommandStateManager computeInstance()
public static CommandStateManager getInstance()
Returns an instance of the receiver for the current thread, lazily intialised if required.
Note that this must be synchronized to prevent another thread detecting the null state while this thread is initialising.
protected static void setInstance(CommandStateManager conditionManager)
conditionManager
- The CommandStateManager to setpublic static void resetInstance()
protected static void updateInstance()
public boolean isHasActions()
public boolean isInProlog()
public boolean isRejected()
public void setHasActions(boolean hasActions)
hasActions
- The hasActions to setpublic void setInProlog(boolean inProlog)
inProlog
- The inProlog to setpublic void setRejected(boolean isRejected)
isRejected
- The isRejected to setpublic boolean isImplicitKeep()
public void setImplicitKeep(boolean implicitKeep)
implicitKeep
- The implicitKeep to set
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |