|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.hs.mail.sieve.ActionDispatcher
public class ActionDispatcher
Method Summary | |
---|---|
protected static ActionDispatcher |
computeInstance()
Returns a new instance of the receiver. |
protected Map |
computeMethodMap()
Returns a new methodMap. |
void |
execute(org.apache.jsieve.mail.Action anAction,
org.apache.jsieve.mail.MailAdapter aMail,
MailetContext aMailetContext)
Method execute executes the passed Action by invoking the method mapped by the receiver with a parameter of the EXACT type of Action. |
static ActionDispatcher |
getInstance()
Returns the sole instance of the receiver, lazily initialised. |
protected Map |
getMethodMap()
Returns the methodMap, lazily initialised. |
static void |
resetInstance()
Resets the instance. |
protected static void |
setInstance(ActionDispatcher instance)
Sets the instance. |
protected void |
setMethodMap(Map methodMap)
Sets the methodMap. |
protected static void |
updateInstance()
Updates the instance. |
protected void |
updateMethodMap()
Updates the methodMap. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ActionDispatcher getInstance()
protected static ActionDispatcher computeInstance()
protected static void setInstance(ActionDispatcher instance)
instance
- The instance to setpublic static void resetInstance()
protected static void updateInstance()
public void execute(org.apache.jsieve.mail.Action anAction, org.apache.jsieve.mail.MailAdapter aMail, MailetContext aMailetContext) throws NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException
anAction
- aMail
- aMailetContext
-
NoSuchMethodException
IllegalAccessException
InvocationTargetException
javax.mail.MessagingException
IllegalArgumentException
protected Map getMethodMap() throws NoSuchMethodException
NoSuchMethodException
protected Map computeMethodMap() throws NoSuchMethodException
NoSuchMethodException
protected void setMethodMap(Map methodMap)
methodMap
- The methodMap to setprotected void updateMethodMap() throws NoSuchMethodException
NoSuchMethodException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |