DynamicServiceLocator
uses this.@Deprecated @Removal(version="3.11.0") public class MetadataTradingRelationshipCreator extends java.lang.Object implements TradingRelationshipCreator
Implementation of TradingRelationshipCreator
which populates the
TradingRelationship
with values returned from configurable metadata keys.
In the adapter configuration file this class is aliased as metadata-trading-relationship-creator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
MetadataTradingRelationshipCreator()
Deprecated.
Creates a new instance.
|
MetadataTradingRelationshipCreator(java.lang.String srcKey,
java.lang.String destKey,
java.lang.String typKey)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
TradingRelationship |
create(AdaptrisMessage msg)
Deprecated.
If any key is empty or if any key returns a value of null or empty a
CoreException is thrown. |
java.lang.String |
getDestinationKey()
Deprecated.
Returns the metadata key used to obtain the destination.
|
java.lang.String |
getSourceKey()
Deprecated.
Returns the metadata key used to obtain the source.
|
java.lang.String |
getTypeKey()
Deprecated.
Returns the metadata key used to obtain the type.
|
void |
setDestinationKey(java.lang.String s)
Deprecated.
Sets the metadata key used to obtain the destination.
|
void |
setSourceKey(java.lang.String s)
Deprecated.
Sets the metadata key used to obtain the source.
|
void |
setTypeKey(java.lang.String s)
Deprecated.
Sets the metadata key used to obtain the type.
|
public MetadataTradingRelationshipCreator()
Creates a new instance. Default keys are empty String
s.
public MetadataTradingRelationshipCreator(java.lang.String srcKey, java.lang.String destKey, java.lang.String typKey)
public TradingRelationship create(AdaptrisMessage msg) throws CoreException
If any key is empty or if any key returns a value of null or empty a
CoreException
is thrown.
create
in interface TradingRelationshipCreator
msg
- the AdaptrisMessage
to processTradingRelationship
CoreException
- wrapping any Exceptions
which occur#create(com.adaptris.core.AdaptrisMessage)
public java.lang.String getDestinationKey()
Returns the metadata key used to obtain the destination.
public void setDestinationKey(java.lang.String s)
Sets the metadata key used to obtain the destination. May not be null or empty.
s
- the metadata key used to obtain the destinationpublic java.lang.String getSourceKey()
Returns the metadata key used to obtain the source.
public void setSourceKey(java.lang.String s)
Sets the metadata key used to obtain the source. May not be null or empty.
s
- the metadata key used to obtain the sourcepublic java.lang.String getTypeKey()
Returns the metadata key used to obtain the type.
public void setTypeKey(java.lang.String s)
Sets the metadata key used to obtain the type. May not be null or empty.
s
- the metadata key used to obtain the type