Class FactoryBasedAddressProviderBuilder
java.lang.Object
com.tangosol.coherence.config.builder.FactoryBasedAddressProviderBuilder
- All Implemented Interfaces:
AddressProviderBuilder
,ParameterizedBuilder<AddressProvider>
,AddressProviderFactory
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
-
Method Summary
Modifier and TypeMethodDescriptioncreateAddressProvider
(ClassLoader loader) Create a new AddressProvider using the specified class loader.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.Defer reporting ConfigurationException until realized.
-
Constructor Details
-
FactoryBasedAddressProviderBuilder
ConstructsFactoryBasedAddressProviderBuilder
- Parameters:
factory
- wrapped factory
-
-
Method Details
-
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
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
Defer reporting ConfigurationException until realized.- Parameters:
e
- ConfigurationException to throw when instantiated.
-