@ComponentProfile(summary="Add an XML namespace as object metadata", tag="service,metadata,xml") public class AddNamespaceObjectMetadata extends ServiceImp
Implementation of Service
that adds a static NamespaceContext to object metadata for use by other services.
In the adapter configuration file this class is aliased as add-namespace-object-metadata which is the preferred alternative to the fully qualified classname when building your configuration.
log
Constructor and Description |
---|
AddNamespaceObjectMetadata() |
AddNamespaceObjectMetadata(KeyValuePairSet elements) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
void |
doService(AdaptrisMessage msg)
Apply the service to the message.
|
KeyValuePairSet |
getNamespaceContext() |
protected void |
initService() |
void |
prepare()
Prepare for initialisation.
|
void |
setNamespaceContext(KeyValuePairSet kvps)
Set the namespace context for resolving namespaces.
|
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
public AddNamespaceObjectMetadata()
public AddNamespaceObjectMetadata(KeyValuePairSet elements)
public void doService(AdaptrisMessage msg) throws ServiceException
Service
Apply the service to the message.
msg
- the AdaptrisMessage
to processServiceException
- wrapping any underlying Exception
sprotected void initService() throws CoreException
initService
in class ServiceImp
CoreException
protected void closeService()
closeService
in class ServiceImp
public KeyValuePairSet getNamespaceContext()
public void setNamespaceContext(KeyValuePairSet kvps)
kvps
- the namespace contextSimpleNamespaceContext.create(KeyValuePairSet)
public void prepare() throws CoreException
ComponentLifecycleExtension
CoreException