Class CustomAddressProviderBuilder
java.lang.Object
com.tangosol.coherence.config.builder.CustomAddressProviderBuilder
- All Implemented Interfaces:
AddressProviderBuilder
,ParameterizedBuilder<AddressProvider>
,AddressProviderFactory
This class builds an AddressProviderBuilder from a customized
ParameterizedBuilder
of
AddressProvider
.- Since:
- Coherence 12.2.1
- Author:
- jf 2015.02.26
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
Constructor Summary
ConstructorDescriptionConstructsCustomAddressProviderBuilder
CustomAddressProviderBuilder
(ParameterizedBuilder<AddressProvider> builder, ParameterResolver resolver) ConstructsCustomAddressProviderBuilder
CustomAddressProviderBuilder
(ParameterizedBuilder<AddressProvider> builder, ParameterResolver resolver, XmlElement xmlConfig) ConstructsCustomAddressProviderBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncreateAddressProvider
(ClassLoader loader) Create a new AddressProvider using the specified class loader.realize
(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters) Realize the custom builder.
-
Constructor Details
-
CustomAddressProviderBuilder
ConstructsCustomAddressProviderBuilder
- Parameters:
builder
- customized AddressProvider
-
CustomAddressProviderBuilder
public CustomAddressProviderBuilder(ParameterizedBuilder<AddressProvider> builder, ParameterResolver resolver) ConstructsCustomAddressProviderBuilder
- Parameters:
builder
- customized AddressProviderresolver
- optional resolver
-
CustomAddressProviderBuilder
public CustomAddressProviderBuilder(ParameterizedBuilder<AddressProvider> builder, ParameterResolver resolver, XmlElement xmlConfig) ConstructsCustomAddressProviderBuilder
- Parameters:
builder
- customized AddressProviderresolver
- resolverxmlConfig
- optional xmlConfig info to only be used in reportingConfigurationException
.
-
-
Method Details
-
realize
public AddressProvider realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters) Realize the custom builder.- Specified by:
realize
in interfaceParameterizedBuilder<AddressProvider>
- Parameters:
resolver
- if non-null, use it. otherwise use resolver provided at construction time.loader
- classloaderlistParameters
- list of parameters.- Returns:
- an instance of T
-
createAddressProvider
Create a new AddressProvider using the specified class loader.- Specified by:
createAddressProvider
in interfaceAddressProviderFactory
- Parameters:
loader
- the optional ClassLoader with which to configure the new AddressProvider- Returns:
- a new AddressProvider
-