|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cid.distribution.base.MessageHandlerBase
public abstract class MessageHandlerBase
A helper base class for the MessageHandler plugins contained in a DistributionProcess.
Constructor Summary | |
---|---|
MessageHandlerBase()
Initializes the instance. |
Method Summary | |
---|---|
static void |
addRules(org.apache.commons.digester.Digester d,
java.lang.String patternPrefix)
Configures additional rules for the commons-digester library. |
void |
destroy()
The distribution container calls this method on all handlers before finishing the distribution process, allowing them to clean up resources. |
java.lang.String |
getId()
The handler Id. |
void |
init()
The distribution container calls this method on all handlers before starting the distribution process. |
void |
setDistributionContext(DistributionContext context)
Sets the DistributionContext reference of this object. |
void |
setId(java.lang.String id)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.cid.distribution.MessageHandler |
---|
process |
Constructor Detail |
---|
public MessageHandlerBase()
Method Detail |
---|
public void setDistributionContext(DistributionContext context)
setDistributionContext
in interface DistributionContextAware
public static void addRules(org.apache.commons.digester.Digester d, java.lang.String patternPrefix)
public void init() throws DistributionProcessingException, DistributionConfigurationException
MessageHandler
init
in interface MessageHandler
DistributionProcessingException
DistributionConfigurationException
public void destroy() throws DistributionProcessingException, DistributionConfigurationException
MessageHandler
destroy
in interface MessageHandler
DistributionProcessingException
DistributionConfigurationException
public java.lang.String getId()
MessageHandler
getId
in interface MessageHandler
public void setId(java.lang.String id)
id
- The id to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |