Class FactoryBasedAddressProviderBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.FactoryBasedAddressProviderBuilder
-
- All Implemented Interfaces:
AddressProviderBuilder
,ParameterizedBuilder<AddressProvider>
,AddressProviderFactory
public class FactoryBasedAddressProviderBuilder extends Object implements AddressProviderBuilder
This class builds an AddressProviderBuilder from a AddressProviderFactory.- 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 FactoryBasedAddressProviderBuilder(AddressProviderFactory factory)
ConstructsFactoryBasedAddressProviderBuilder
-
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)
Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolver
to resolve values any referencedParameter
s.AddressProviderBuilder
setDeferredException(ConfigurationException e)
Defer reporting ConfigurationException until realized.
-
-
-
Constructor Detail
-
FactoryBasedAddressProviderBuilder
public FactoryBasedAddressProviderBuilder(AddressProviderFactory factory)
ConstructsFactoryBasedAddressProviderBuilder
- Parameters:
factory
- wrapped factory
-
-
Method Detail
-
realize
public AddressProvider realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters)
Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolver
to resolve values any referencedParameter
s.- Specified by:
realize
in interfaceParameterizedBuilder<AddressProvider>
- Parameters:
resolver
- theParameterResolver
for resolving namedParameter
sloader
- theClassLoader
for loading any necessary classes and ifnull
theClassLoader
used to load the builder will be used insteadlistParameters
- an optionalParameterList
(may benull
) to be used for realizing the instance, eg: used as constructor 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
-
setDeferredException
public AddressProviderBuilder setDeferredException(ConfigurationException e)
Defer reporting ConfigurationException until realized.- Parameters:
e
- ConfigurationException to throw when instantiated.
-
-