Package org.openas2.processor
Class DefaultProcessor
- java.lang.Object
-
- org.openas2.BaseComponent
-
- org.openas2.processor.DefaultProcessor
-
public class DefaultProcessor extends BaseComponent implements Processor
-
-
Field Summary
Fields Modifier and Type Field Description private org.apache.commons.logging.Log
logger
private java.util.List<ProcessorModule>
modules
-
Fields inherited from interface org.openas2.processor.Processor
COMPID_PROCESSOR
-
-
Constructor Summary
Constructors Constructor Description DefaultProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
checkActiveModules(java.util.List<java.lang.String> failures)
void
destroy()
Component lifecycle hook.java.util.List<ActiveModule>
getActiveModules()
java.util.List<ActiveModule>
getActiveModulesByClass(java.lang.Class<?> clazz)
java.util.List<ProcessorModule>
getModules()
void
handle(java.lang.String action, Message msg, java.util.Map<java.lang.Object,java.lang.Object> options)
void
startActiveModules()
void
stopActiveModules()
-
Methods inherited from class org.openas2.BaseComponent
getName, getParameter, getParameter, getParameterInt, getParameters, getSession, init, setParameter, setParameter
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.openas2.Component
getName, getParameters, getSession, init
-
-
-
-
Field Detail
-
modules
private java.util.List<ProcessorModule> modules
-
logger
private org.apache.commons.logging.Log logger
-
-
Method Detail
-
getActiveModules
public java.util.List<ActiveModule> getActiveModules()
- Specified by:
getActiveModules
in interfaceProcessor
-
getModules
public java.util.List<ProcessorModule> getModules()
- Specified by:
getModules
in interfaceProcessor
-
handle
public void handle(java.lang.String action, Message msg, java.util.Map<java.lang.Object,java.lang.Object> options) throws OpenAS2Exception
- Specified by:
handle
in interfaceProcessor
- Throws:
OpenAS2Exception
-
startActiveModules
public void startActiveModules() throws OpenAS2Exception
- Specified by:
startActiveModules
in interfaceProcessor
- Throws:
OpenAS2Exception
-
stopActiveModules
public void stopActiveModules()
- Specified by:
stopActiveModules
in interfaceProcessor
-
checkActiveModules
public boolean checkActiveModules(java.util.List<java.lang.String> failures)
- Specified by:
checkActiveModules
in interfaceProcessor
-
getActiveModulesByClass
public java.util.List<ActiveModule> getActiveModulesByClass(java.lang.Class<?> clazz)
- Specified by:
getActiveModulesByClass
in interfaceProcessor
-
destroy
public void destroy() throws java.lang.Exception
Description copied from interface:Component
Component lifecycle hook. If lifecycle ofComponent
requires a destroy function this method can be used.- Specified by:
destroy
in interfaceComponent
- Overrides:
destroy
in classBaseComponent
- Throws:
java.lang.Exception
- Something went wrong- See Also:
Component.init(Session, Map)
,Session
-
-