Class ElementCalculatorBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.DefaultBuilderCustomization<NamedTopic.ElementCalculator>
-
- com.tangosol.coherence.config.builder.ElementCalculatorBuilder
-
- All Implemented Interfaces:
BuilderCustomization<NamedTopic.ElementCalculator>
,ParameterizedBuilder<NamedTopic.ElementCalculator>
public class ElementCalculatorBuilder extends DefaultBuilderCustomization<NamedTopic.ElementCalculator> implements ParameterizedBuilder<NamedTopic.ElementCalculator>
TheElementCalculatorBuilder
class builds anNamedTopic.ElementCalculator
.- Since:
- 21.06
- Author:
- Jonathan Knight 2021.05.17
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
-
Constructor Summary
Constructors Constructor Description ElementCalculatorBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getElementCalculatorType(ParameterResolver resolver)
Returns theNamedTopic.ElementCalculator
type.NamedTopic.ElementCalculator
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)
Returnstrue
if this builder realizes the specified type.void
setElementCalculatorType(Expression<String> expr)
Set theNamedTopic.ElementCalculator
type.-
Methods inherited from class com.tangosol.coherence.config.builder.DefaultBuilderCustomization
getCustomBuilder, setCustomBuilder
-
-
-
-
Method Detail
-
getElementCalculatorType
public String getElementCalculatorType(ParameterResolver resolver)
Returns theNamedTopic.ElementCalculator
type.- Parameters:
resolver
- theParameterResolver
- Returns:
- the type of
NamedTopic.ElementCalculator
-
setElementCalculatorType
@Injectable public void setElementCalculatorType(Expression<String> expr)
Set theNamedTopic.ElementCalculator
type.- Parameters:
expr
- theNamedTopic.ElementCalculator
type
-
realizes
public boolean realizes(Class<?> clzClass, ParameterResolver resolver, ClassLoader loader)
Returnstrue
if this builder realizes the specified type.- Parameters:
clzClass
- the required typeresolver
- the parameter resolver to useloader
- the classloader- Returns:
true
if this builder realizes the specified type.
-
realize
public NamedTopic.ElementCalculator realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters)
Description copied from interface:ParameterizedBuilder
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<NamedTopic.ElementCalculator>
- 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
-
-