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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AddressProviderBuildernewLocalAddressProviderBuilder(XmlElement xmlLocalAddress) Build a new AddressProviderBuilder for the local-address.process(ProcessingContext context, XmlElement xmlElement) Process anXmlElementto return a specific type of value.
-
Constructor Details
-
AddressProviderBuilderProcessor
public AddressProviderBuilderProcessor()
-
-
Method Details
-
process
public AddressProviderBuilder process(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException Process anXmlElementto return a specific type of value.- Specified by:
processin interfaceElementProcessor<ParameterizedBuilder<AddressProvider>>- Parameters:
context- theProcessingContextin which theXmlElementis being processedxmlElement- theXmlElementto 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- theXmlElementto process- Returns:
- the newly constructed AddressProviderBuilder
-