public abstract class MTransformationPlugin extends MBaseComponent
MTransformationPlugin
and implement the required methods.
The low-level callout provided by MTransformationPlugin
is primarily intended to
allow developers to create custom low-level plugins that can be used
against any adapter built with the Adapter SDK. Performing localized
transformations using XSLT and encryption/decryption are only two of
the possible uses of this feature. Developers can write and deploy
their low-level callout plugin such that arbitrary operations can
be performed against data in order. Any desired plugin chaining
will have to be handled by the plugin writer. This means someone
wanting to chain two existing plugins must write their own, third
plugin to chain them together (loading the library themselves, forcing processing order,
and so forth).Modifier and Type | Field and Description |
---|---|
static boolean |
IS_INBOUND |
static boolean |
IS_OUTBOUND |
m_registry
Modifier | Constructor and Description |
---|---|
protected |
MTransformationPlugin(MApp app,
java.lang.String pluginname,
java.lang.String pluginID)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getPluginIndentifier() |
static boolean |
plugin_transform(MComponentRegistry CR,
java.lang.String sComponentName,
java.util.Vector TPVector,
MTree tree,
boolean bound) |
abstract boolean |
transformInbound(java.lang.String endpointName,
MTree inboundTree)
This is the low-level callout for inbound messages.
|
abstract boolean |
transformOutbound(java.lang.String endpointName,
MTree outboundTree)
This is the low-level callout for outbound messages.
|
activate, deactivate, getComponentRegistry, getName, getStatus, isActivated, remove
public static final boolean IS_INBOUND
public static final boolean IS_OUTBOUND
protected MTransformationPlugin(MApp app, java.lang.String pluginname, java.lang.String pluginID)
app
- The MApp instance or application manager with
which this transformation plugin is associated.pluginname
- The name of the shared library of the transformation plugin.pluginID
- A unique identifier.public static final boolean plugin_transform(MComponentRegistry CR, java.lang.String sComponentName, java.util.Vector TPVector, MTree tree, boolean bound) throws MException
MException
public abstract boolean transformOutbound(java.lang.String endpointName, MTree outboundTree) throws MException
endpointName
- Name of the outbound endpoint.outboundTree
- The outbound message as a tree format for manipulation.MException
public abstract boolean transformInbound(java.lang.String endpointName, MTree inboundTree) throws MException
endpointName
- Name of the inbound endpoint.inboundTree
- The inbound message as a tree format for manipulation.MException
public java.lang.String getPluginIndentifier()