DynamicServiceLocator
uses this.@Deprecated @Removal(version="3.11.0") public final class ConfiguredTradingRelationshipCreator extends java.lang.Object implements TradingRelationshipCreator
Implementation of TradingRelationshipCreator
which creates a
TradingRelationship
with the configured values.
In the adapter configuration file this class is aliased as configured-trading-relationship-creator which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
ConfiguredTradingRelationshipCreator()
Deprecated.
Creates a new instance.
|
ConfiguredTradingRelationshipCreator(java.lang.String src,
java.lang.String dest,
java.lang.String type)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
TradingRelationship |
create(AdaptrisMessage msg)
Deprecated.
Create a
TradingRelationship from an
AdaptrisMessage . |
java.lang.String |
getDestination()
Deprecated.
Returns the metadata key used to obtain the destination.
|
java.lang.String |
getSource()
Deprecated.
Returns the metadata key used to obtain the source.
|
java.lang.String |
getType()
Deprecated.
Returns the metadata key used to obtain the type.
|
void |
setDestination(java.lang.String s)
Deprecated.
Sets the metadata key used to obtain the destination.
|
void |
setSource(java.lang.String s)
Deprecated.
Sets the metadata key used to obtain the source.
|
void |
setType(java.lang.String s)
Deprecated.
Sets the metadata key used to obtain the type.
|
public ConfiguredTradingRelationshipCreator()
Creates a new instance. Default keys are empty String
s.
public ConfiguredTradingRelationshipCreator(java.lang.String src, java.lang.String dest, java.lang.String type)
public TradingRelationship create(AdaptrisMessage msg) throws CoreException
TradingRelationshipCreator
Create a TradingRelationship
from an
AdaptrisMessage
.
create
in interface TradingRelationshipCreator
msg
- the AdaptrisMessage
to processTradingRelationship
CoreException
- wrapping any Exceptions
which occur#create(com.adaptris.core.AdaptrisMessage)
public java.lang.String getDestination()
Returns the metadata key used to obtain the destination.
public void setDestination(java.lang.String s)
Sets the metadata key used to obtain the destination. May not be null.
s
- the metadata key used to obtain the destinationpublic java.lang.String getSource()
Returns the metadata key used to obtain the source.
public void setSource(java.lang.String s)
Sets the metadata key used to obtain the source. May not be null
s
- the metadata key used to obtain the sourcepublic java.lang.String getType()
Returns the metadata key used to obtain the type.
public void setType(java.lang.String s)
Sets the metadata key used to obtain the type. May not be null.
s
- the metadata key used to obtain the type