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>
The
ElementCalculatorBuilder
class builds an NamedTopic.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
-
Method Summary
Modifier and TypeMethodDescriptiongetElementCalculatorType
(ParameterResolver resolver) Returns theNamedTopic.ElementCalculator
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) Returnstrue
if this builder realizes the specified type.void
Set theNamedTopic.ElementCalculator
type.Methods inherited from class com.tangosol.coherence.config.builder.DefaultBuilderCustomization
getCustomBuilder, setCustomBuilder
-
Constructor Details
-
ElementCalculatorBuilder
public ElementCalculatorBuilder()
-
-
Method Details
-
getElementCalculatorType
Returns theNamedTopic.ElementCalculator
type.- Parameters:
resolver
- theParameterResolver
- Returns:
- the type of
NamedTopic.ElementCalculator
-
setElementCalculatorType
Set theNamedTopic.ElementCalculator
type.- Parameters:
expr
- theNamedTopic.ElementCalculator
type
-
realizes
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
-