Class CustomAddressProviderBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.CustomAddressProviderBuilder
-
- All Implemented Interfaces:
AddressProviderBuilder
,ParameterizedBuilder<AddressProvider>
,AddressProviderFactory
public class CustomAddressProviderBuilder extends Object implements AddressProviderBuilder
This class builds an AddressProviderBuilder from a customizedParameterizedBuilder
ofAddressProvider
.- 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
Constructors Constructor Description CustomAddressProviderBuilder(ParameterizedBuilder<AddressProvider> builder)
ConstructsCustomAddressProviderBuilder
CustomAddressProviderBuilder(ParameterizedBuilder<AddressProvider> builder, ParameterResolver resolver)
ConstructsCustomAddressProviderBuilder
CustomAddressProviderBuilder(ParameterizedBuilder<AddressProvider> builder, ParameterResolver resolver, XmlElement xmlConfig)
ConstructsCustomAddressProviderBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AddressProvider
createAddressProvider(ClassLoader loader)
Create a new AddressProvider using the specified class loader.AddressProvider
realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters)
Realize the custom builder.
-
-
-
Constructor Detail
-
CustomAddressProviderBuilder
public CustomAddressProviderBuilder(ParameterizedBuilder<AddressProvider> builder)
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 Detail
-
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
public AddressProvider createAddressProvider(ClassLoader loader)
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
-
-