public abstract class MetadataBranchingServiceImp extends BranchingServiceImp
Behaviour common to Service
s which branch based on
AdaptrisMessage
metadata.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
MetadataBranchingServiceImp()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addMetadataKey(java.lang.String metadataKey)
Adds a metadata key to the end of the
List . |
protected void |
closeService() |
java.lang.String |
getDefaultServiceId()
Returns the ID of an optional default
Service . |
java.util.List<java.lang.String> |
getMetadataKeys()
Returns a
List of String metadata keys. |
protected void |
initService() |
void |
prepare()
Prepare for initialisation.
|
void |
setDefaultServiceId(java.lang.String s)
Sets the ID of an optional default
Service . |
void |
setMetadataKeys(java.util.List l)
Sets a
List of String metadata keys. |
isBranching
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
public MetadataBranchingServiceImp()
Creates a new instance.
protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
protected void closeService()
closeService
in class ServiceImp
public java.util.List<java.lang.String> getMetadataKeys()
Returns a List
of String
metadata keys.
List
of String
metadata
keyspublic void setMetadataKeys(java.util.List l)
Sets a List
of String
metadata keys.
l
- metadataKeys a List
of String
metadata
keyspublic void addMetadataKey(java.lang.String metadataKey)
Adds a metadata key to the end of the List
. (List so you
can have the same key more than once if required.)
metadataKey
- the metadata key to add, may not be blankpublic void prepare() throws CoreException
ComponentLifecycleExtension
CoreException
public java.lang.String getDefaultServiceId()
Returns the ID of an optional default Service
.
Service
public void setDefaultServiceId(java.lang.String s)
Sets the ID of an optional default Service
.
s
- the ID of an optional default Service