public class TransportMappings
extends java.lang.Object
TransportMappings
factory can be used to create a transport
mapping for an address class.Modifier and Type | Field and Description |
---|---|
private static TransportMappings |
instance |
private static LogAdapter |
logger |
static java.lang.String |
TRANSPORT_MAPPINGS |
private static java.lang.String |
TRANSPORT_MAPPINGS_DEFAULT |
private java.util.Hashtable<java.lang.String,java.lang.Class<? extends TransportMapping>> |
transportMappings |
Modifier | Constructor and Description |
---|---|
protected |
TransportMappings() |
Modifier and Type | Method and Description |
---|---|
TransportMapping<? extends Address> |
createTransportMapping(Address transportAddress)
Returns a
TransportMapping instance that is initialized with
the supplied transport address. |
static TransportMappings |
getInstance()
Returns the
TransportMappings singleton. |
protected void |
registerTransportMappings() |
private static final LogAdapter logger
public static final java.lang.String TRANSPORT_MAPPINGS
private static final java.lang.String TRANSPORT_MAPPINGS_DEFAULT
private static TransportMappings instance
private java.util.Hashtable<java.lang.String,java.lang.Class<? extends TransportMapping>> transportMappings
public static TransportMappings getInstance()
TransportMappings
singleton.TransportMappings
instance.public TransportMapping<? extends Address> createTransportMapping(Address transportAddress)
TransportMapping
instance that is initialized with
the supplied transport address.
If no such mapping exists, null
is returned. To register
third party transport mappings, please set the system property
TRANSPORT_MAPPINGS
to a transport mappings registration file,
before calling this method for the first time.transportAddress
- an Address
instance that the transport mapping to lookup
has to support.TransportMapping
that supports the specified
transportAddress
or null
if such a mapping
cannot be found.protected void registerTransportMappings()