|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.net.SocketProviderFactory
public class SocketProviderFactory
The SocketProviderFactory produces SocketProviders.
Field Summary | |
---|---|
static SocketProvider |
DEFAULT_PROVIDER The factory's default SocketProvider. |
protected Map |
m_mapConfig A map of provider configurations, key'd by name. |
protected Map |
m_mapProvider A map of instantiated providers, key'd by name. |
protected XmlElement |
m_xml The configuration. |
static String |
XML_NAME The name of the XmlElement in which SocketProviders are specified. |
static String |
XML_PROVIDER_NAME The name of the XmlElement in which each SocketProvider is specified. |
Constructor Summary | |
---|---|
SocketProviderFactory() |
Method Summary | |
---|---|
SocketProvider |
createProvider(XmlElement xml) Create and return a SocketProvider based upon a supplied configuration. |
SocketProvider |
ensureProvider(XmlElement xml) Return an instance of the specified provider, creating it if necessary. |
XmlElement |
getConfig() Determine the current configuration of the object. |
void |
setConfig(XmlElement xml) Specify the configuration for the object. |
Field Detail |
---|
protected XmlElement m_xml
protected Map m_mapConfig
protected Map m_mapProvider
public static final SocketProvider DEFAULT_PROVIDER
public static final String XML_NAME
public static final String XML_PROVIDER_NAME
Constructor Detail |
---|
public SocketProviderFactory()
Method Detail |
---|
public SocketProvider createProvider(XmlElement xml) throws IOException
xml
- the provider configurationIOException
- if the provider cannot be created due to an I/O errorpublic SocketProvider ensureProvider(XmlElement xml) throws IOException
xml
- the provider definition, or null for the default providerIOException
- if an I/O error occurspublic XmlElement getConfig()
getConfig
in interface XmlConfigurable
public void setConfig(XmlElement xml)
setConfig
in interface XmlConfigurable
xml
- the XML configuration for the object
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |