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>
TheUnitCalculatorBuilder
class builds aConfigurableCacheMap.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
Constructors Constructor Description UnitCalculatorBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getUnitCalculatorType(ParameterResolver resolver)
Return theConfigurableCacheMap.UnitCalculator
type.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.boolean
realizes(Class<?> clzClass, ParameterResolver resolver, ClassLoader loader)
void
setUnitCalculatorType(Expression<String> expr)
Set theConfigurableCacheMap.UnitCalculator
type.-
Methods inherited from class com.tangosol.coherence.config.builder.DefaultBuilderCustomization
getCustomBuilder, setCustomBuilder
-
-
-
-
Method Detail
-
getUnitCalculatorType
public String getUnitCalculatorType(ParameterResolver resolver)
Return theConfigurableCacheMap.UnitCalculator
type.- Parameters:
resolver
- theParameterResolver
- Returns:
- the type of
ConfigurableCacheMap.UnitCalculator
-
setUnitCalculatorType
@Injectable public void setUnitCalculatorType(Expression<String> expr)
Set theConfigurableCacheMap.UnitCalculator
type.- Parameters:
expr
- theConfigurableCacheMap.UnitCalculator
type
-
realizes
public boolean realizes(Class<?> clzClass, ParameterResolver resolver, ClassLoader loader)
-
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
-
-