Class AddressProviderBuilderProcessor
java.lang.Object
com.tangosol.coherence.config.xml.processor.AddressProviderBuilderProcessor
- All Implemented Interfaces:
ElementProcessor<ParameterizedBuilder<AddressProvider>>
public class AddressProviderBuilderProcessor
extends Object
implements ElementProcessor<ParameterizedBuilder<AddressProvider>>
An
ElementProcessor
that will parse and produce a
ParameterizedBuilder<AddressProvider> based on an address-provider configuration element,
that of which is defined as such (with support for foreign-namespaces)
<!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.3
- Author:
- bo 2013.03.07
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AddressProviderBuilder
newLocalAddressProviderBuilder
(XmlElement xmlLocalAddress) Build a new AddressProviderBuilder for the local-address.process
(ProcessingContext context, XmlElement xmlElement) Process anXmlElement
to return a specific type of value.
-
Constructor Details
-
AddressProviderBuilderProcessor
public AddressProviderBuilderProcessor()
-
-
Method Details
-
process
public AddressProviderBuilder process(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException Process anXmlElement
to return a specific type of value.- Specified by:
process
in interfaceElementProcessor<ParameterizedBuilder<AddressProvider>>
- Parameters:
context
- theProcessingContext
in which theXmlElement
is being processedxmlElement
- theXmlElement
to process- Returns:
- a value of type T
- Throws:
ConfigurationException
- when a configuration problem was encountered
-
newLocalAddressProviderBuilder
Build a new AddressProviderBuilder for the local-address.- Parameters:
xmlLocalAddress
- theXmlElement
to process- Returns:
- the newly constructed AddressProviderBuilder
-