Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


com.tangosol.net
Class ConfigurableAddressProviderFactory

java.lang.Object
  extended by com.tangosol.net.ConfigurableAddressProviderFactory

All Implemented Interfaces:
AddressProviderFactory, XmlConfigurable

public class ConfigurableAddressProviderFactory
extends java.lang.Object
implements AddressProviderFactory, XmlConfigurable

A AddressProviderFactory implementation that creates instances of an address provider class configured using an XmlElement of the following structure:

   <!ELEMENT ... (socket-address+ | address-provider)>
   <!ELEMENT address-provider
     (class-name | (class-factory-name, method-name), init-params?>
   <!ELEMENT socket-address (address, port)>
 
Since:
Coherence 12.1.2
Author:
wl 2012.04.04

Constructor Summary
ConfigurableAddressProviderFactory()
           

 

Method Summary
 AddressProvider createAddressProvider(java.lang.ClassLoader loader)
          Instantiate an AddressProvider configured according to the specified XML.
 XmlElement getConfig()
          Determine the current configuration of the object.
 void setConfig(XmlElement xml)
          Specify the configuration for the object.
 java.lang.String toString()
          

 

Constructor Detail

ConfigurableAddressProviderFactory

public ConfigurableAddressProviderFactory()

Method Detail

createAddressProvider

public AddressProvider createAddressProvider(java.lang.ClassLoader loader)
Instantiate an AddressProvider configured according to the specified XML. The passed XML has to conform to the following format:
   <!ELEMENT ... (socket-address+ | address-provider)>
   <!ELEMENT address-provider
     (class-name | (class-factory-name, method-name), init-params?>
   <!ELEMENT socket-address (address, port)>
 
Specified by:
createAddressProvider in interface AddressProviderFactory
Parameters:
loader - (optional) the ClassLoader that should be used to load necessary classes
Returns:
an instance of the corresponding AddressProvider implementation
See Also:
"the "remote-addresses" element declaration for the coherence-cache-config.xsd in the Coherence library"

setConfig

public void setConfig(XmlElement xml)
Specify the configuration for the object.
Specified by:
setConfig in interface XmlConfigurable
Parameters:
xml - the XML configuration for the object

getConfig

public XmlElement getConfig()
Determine the current configuration of the object.
Specified by:
getConfig in interface XmlConfigurable
Returns:
the XML configuration or null

toString

public java.lang.String toString()

Skip navigation links

Oracle® Coherence Java API Reference
Release 12.1.2.0.3

E26043-02


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.