Class ConfigurableAddressProviderFactory

  • All Implemented Interfaces:
    AddressProviderFactory, XmlConfigurable

    @Deprecated
    public class ConfigurableAddressProviderFactory
    extends Object
    implements AddressProviderFactory, XmlConfigurable
    Deprecated.
    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 Detail

      • ConfigurableAddressProviderFactory

        public ConfigurableAddressProviderFactory()
        Deprecated.
        Default constructor.
    • Method Detail

      • createAddressProvider

        public AddressProvider createAddressProvider​(ClassLoader loader)
        Deprecated.
        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)>
         
        Note: "the "remote-addresses" element declaration for the coherence-cache-config.xsd in the Coherence library"
        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
      • setConfig

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

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