public class AddressProviderBuilderProcessor extends Object implements ElementProcessor<ParameterizedBuilder<AddressProvider>>
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)>
Constructor and Description |
---|
AddressProviderBuilderProcessor() |
Modifier and Type | Method and Description |
---|---|
static AddressProviderBuilder |
newLocalAddressProviderBuilder(XmlElement xmlLocalAddress)
Build a new AddressProviderBuilder for the local-address.
|
AddressProviderBuilder |
process(ProcessingContext context,
XmlElement xmlElement)
Process an
XmlElement to return a specific type of value. |
public AddressProviderBuilder process(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException
XmlElement
to return a specific type of value.process
in interface ElementProcessor<ParameterizedBuilder<AddressProvider>>
context
- the ProcessingContext
in which the
XmlElement
is being processedxmlElement
- the XmlElement
to processConfigurationException
- when a configuration problem was encounteredpublic static AddressProviderBuilder newLocalAddressProviderBuilder(XmlElement xmlLocalAddress)
xmlLocalAddress
- the XmlElement
to process