Package com.adaptris.core.runtime
Class AdapterComponentChecker
- java.lang.Object
-
- com.adaptris.core.runtime.ChildRuntimeInfoComponentImpl
-
- com.adaptris.core.runtime.AdapterComponentChecker
-
- All Implemented Interfaces:
AdapterComponentCheckerMBean
,BaseComponentMBean
,ChildRuntimeInfoComponent
,ChildRuntimeInfoComponentMBean
,RuntimeInfoComponent
public class AdapterComponentChecker extends ChildRuntimeInfoComponentImpl implements AdapterComponentCheckerMBean
Implementation ofAdapterComponentCheckerMBean
for use by the GUI to check components.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.runtime.ChildRuntimeInfoComponentImpl
log
-
Fields inherited from interface com.adaptris.core.runtime.AdapterComponentCheckerMBean
COMPONENT_CHECKER_TYPE
-
-
Constructor Summary
Constructors Constructor Description AdapterComponentChecker(AdapterManager owner)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SerializableMessage
applyService(java.lang.String xml, SerializableMessage serializedMsg)
Apply the configured services to the msg.SerializableMessage
applyService(java.lang.String xml, SerializableMessage serializedMsg, boolean rewriteConnections)
Apply the configured services to the msg.void
checkInitialise(java.lang.String xml)
Check that this XML will initialise.RuntimeInfoComponent
getParentRuntimeInfoComponent()
protected java.lang.String
getType()
protected java.lang.String
uniqueId()
-
Methods inherited from class com.adaptris.core.runtime.ChildRuntimeInfoComponentImpl
createObjectName, getParentId, getParentObjectName, registerMBean, unregisterMBean
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.adaptris.core.runtime.BaseComponentMBean
createObjectName, registerMBean, unregisterMBean
-
-
-
-
Constructor Detail
-
AdapterComponentChecker
public AdapterComponentChecker(AdapterManager owner)
-
-
Method Detail
-
getType
protected java.lang.String getType()
- Specified by:
getType
in classChildRuntimeInfoComponentImpl
-
uniqueId
protected java.lang.String uniqueId()
- Specified by:
uniqueId
in classChildRuntimeInfoComponentImpl
-
getParentRuntimeInfoComponent
public RuntimeInfoComponent getParentRuntimeInfoComponent()
- Specified by:
getParentRuntimeInfoComponent
in interfaceChildRuntimeInfoComponent
-
checkInitialise
public void checkInitialise(java.lang.String xml) throws CoreException
Description copied from interface:AdapterComponentCheckerMBean
Check that this XML will initialise.- Specified by:
checkInitialise
in interfaceAdapterComponentCheckerMBean
- Parameters:
xml
- the XML configuration, which could be a service, or a connection.- Throws:
CoreException
- wrapping any other exception.
-
applyService
public SerializableMessage applyService(java.lang.String xml, SerializableMessage serializedMsg) throws CoreException
Description copied from interface:AdapterComponentCheckerMBean
Apply the configured services to the msg.- Specified by:
applyService
in interfaceAdapterComponentCheckerMBean
- Parameters:
xml
- String XML representation of the service (or service-list)serializedMsg
- the message.- Returns:
- the result of applying these services.
- Throws:
CoreException
- wrapping any other exception
-
applyService
public SerializableMessage applyService(java.lang.String xml, SerializableMessage serializedMsg, boolean rewriteConnections) throws CoreException
Description copied from interface:AdapterComponentCheckerMBean
Apply the configured services to the msg.- Specified by:
applyService
in interfaceAdapterComponentCheckerMBean
- Parameters:
xml
- String XML representation of the service (or service-list)serializedMsg
- the message.rewriteConnections
- useAdaptrisConnection.cloneForTesting()
to generate a new connection.- Returns:
- the result of applying these services.
- Throws:
CoreException
- wrapping any other exception
-
-