Class UnitCalculatorBuilder
java.lang.Object
com.tangosol.coherence.config.builder.DefaultBuilderCustomization<ConfigurableCacheMap.UnitCalculator>
com.tangosol.coherence.config.builder.UnitCalculatorBuilder
- All Implemented Interfaces:
BuilderCustomization<ConfigurableCacheMap.UnitCalculator>
,ParameterizedBuilder<ConfigurableCacheMap.UnitCalculator>
public class UnitCalculatorBuilder
extends DefaultBuilderCustomization<ConfigurableCacheMap.UnitCalculator>
implements ParameterizedBuilder<ConfigurableCacheMap.UnitCalculator>
The
UnitCalculatorBuilder
class builds a ConfigurableCacheMap.UnitCalculator
.- Since:
- Coherence 12.1.2
- Author:
- pfm 2012.01.07
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetUnitCalculatorType
(ParameterResolver resolver) Return theConfigurableCacheMap.UnitCalculator
type.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.boolean
realizes
(Class<?> clzClass, ParameterResolver resolver, ClassLoader loader) void
Set theConfigurableCacheMap.UnitCalculator
type.Methods inherited from class com.tangosol.coherence.config.builder.DefaultBuilderCustomization
getCustomBuilder, setCustomBuilder
-
Constructor Details
-
UnitCalculatorBuilder
public UnitCalculatorBuilder()
-
-
Method Details
-
getUnitCalculatorType
Return theConfigurableCacheMap.UnitCalculator
type.- Parameters:
resolver
- theParameterResolver
- Returns:
- the type of
ConfigurableCacheMap.UnitCalculator
-
setUnitCalculatorType
Set theConfigurableCacheMap.UnitCalculator
type.- Parameters:
expr
- theConfigurableCacheMap.UnitCalculator
type
-
realizes
-
realize
public ConfigurableCacheMap.UnitCalculator 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<ConfigurableCacheMap.UnitCalculator>
- 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
-