Skip navigation links
com.tangosol.coherence.config.builder
Class UnitCalculatorBuilder
java.lang.Object
com.tangosol.coherence.config.builder.DefaultBuilderCustomization
com.tangosol.coherence.config.builder.UnitCalculatorBuilder
- All Implemented Interfaces:
- BuilderCustomization, ParameterizedBuilder
-
public class UnitCalculatorBuilder
- extends DefaultBuilderCustomization
- implements ParameterizedBuilder
The UnitCalculatorBuilder class builds a ConfigurableCacheMap.UnitCalculator.
- Since:
- Coherence 12.1.2
- Author:
- pfm 2012.01.07
UnitCalculatorBuilder
public UnitCalculatorBuilder()
getUnitCalculatorType
public java.lang.String getUnitCalculatorType(com.tangosol.config.expression.ParameterResolver resolver)
- Return the
ConfigurableCacheMap.UnitCalculator type.
-
- Parameters:
resolver - the ParameterResolver
- Returns:
- the type of
ConfigurableCacheMap.UnitCalculator
setUnitCalculatorType
@Injectable
public void setUnitCalculatorType(com.tangosol.config.expression.Expression expr)
- Set the
ConfigurableCacheMap.UnitCalculator type.
-
- Parameters:
expr - the ConfigurableCacheMap.UnitCalculator type
realizes
public boolean realizes(java.lang.Class clzClass,
com.tangosol.config.expression.ParameterResolver resolver,
java.lang.ClassLoader loader)
realize
public ConfigurableCacheMap.UnitCalculator realize(com.tangosol.config.expression.ParameterResolver resolver,
java.lang.ClassLoader loader,
ParameterList listParameters)
- Realizes (creates if necessary) an instance of a object of type T, using the provided
ParameterResolver to resolve values any referenced Parameters.
-
- Specified by:
realize in interface ParameterizedBuilder
-
- Parameters:
resolver - the ParameterResolver for resolving named Parameters
loader - the ClassLoader for loading any necessary classes and if null the ClassLoader used to load the builder will be used instead
listParameters - an optional ParameterList (may be null) to be used for realizing the instance, eg: used as constructor parameters
- Returns:
- an instance of T
Skip navigation links
Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.