com.hs.mail.sieve
Class ActionDispatcher

java.lang.Object
  extended by com.hs.mail.sieve.ActionDispatcher

public class ActionDispatcher
extends Object


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

getInstance

public static ActionDispatcher getInstance()
Returns the sole instance of the receiver, lazily initialised.

Returns:
ActionDispatcher

computeInstance

protected static ActionDispatcher computeInstance()
Returns a new instance of the receiver.

Returns:
ActionDispatcher

setInstance

protected static void setInstance(ActionDispatcher instance)
Sets the instance.

Parameters:
instance - The instance to set

resetInstance

public static void resetInstance()
Resets the instance.


updateInstance

protected static void updateInstance()
Updates the instance.


execute

public void execute(org.apache.jsieve.mail.Action anAction,
                    org.apache.jsieve.mail.MailAdapter aMail,
                    MailetContext aMailetContext)
             throws NoSuchMethodException,
                    IllegalArgumentException,
                    IllegalAccessException,
                    InvocationTargetException
Method execute executes the passed Action by invoking the method mapped by the receiver with a parameter of the EXACT type of Action.

Parameters:
anAction -
aMail -
aMailetContext -
Throws:
NoSuchMethodException
IllegalAccessException
InvocationTargetException
javax.mail.MessagingException
IllegalArgumentException

getMethodMap

protected Map getMethodMap()
                    throws NoSuchMethodException
Returns the methodMap, lazily initialised.

Returns:
Map
Throws:
NoSuchMethodException

computeMethodMap

protected Map computeMethodMap()
                        throws NoSuchMethodException
Returns a new methodMap.

Returns:
Map
Throws:
NoSuchMethodException

setMethodMap

protected void setMethodMap(Map methodMap)
Sets the methodMap.

Parameters:
methodMap - The methodMap to set

updateMethodMap

protected void updateMethodMap()
                        throws NoSuchMethodException
Updates the methodMap.

Throws:
NoSuchMethodException


Copyright © 2011. All Rights Reserved.