Class PartitionAssignmentStrategyBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.DefaultBuilderCustomization<PartitionAssignmentStrategy>
-
- com.tangosol.coherence.config.builder.PartitionAssignmentStrategyBuilder
-
- All Implemented Interfaces:
BuilderCustomization<PartitionAssignmentStrategy>
,ParameterizedBuilder<PartitionAssignmentStrategy>
public class PartitionAssignmentStrategyBuilder extends DefaultBuilderCustomization<PartitionAssignmentStrategy> implements ParameterizedBuilder<PartitionAssignmentStrategy>
- Since:
- Coherence 12.2.1
- Author:
- jf 2015.01.29
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
-
Constructor Summary
Constructors Constructor Description PartitionAssignmentStrategyBuilder(ParameterizedBuilder<?> bldr, XmlElement xmlElement)
ConstructsPartitionAssignmentStrategyBuilder
PartitionAssignmentStrategyBuilder(String sStrategy, XmlElement xmlElement)
Constructs aPartitionAssignmentStrategyBuilder
for a predefined strategy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartitionAssignmentStrategy
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.-
Methods inherited from class com.tangosol.coherence.config.builder.DefaultBuilderCustomization
getCustomBuilder, setCustomBuilder
-
-
-
-
Constructor Detail
-
PartitionAssignmentStrategyBuilder
public PartitionAssignmentStrategyBuilder(ParameterizedBuilder<?> bldr, XmlElement xmlElement)
ConstructsPartitionAssignmentStrategyBuilder
- Parameters:
bldr
- customized PartitionAssignmentStrategy builderxmlElement
- optional configuration context to be used to provide details if a ConfigurationException is detected.
-
PartitionAssignmentStrategyBuilder
public PartitionAssignmentStrategyBuilder(String sStrategy, XmlElement xmlElement)
Constructs aPartitionAssignmentStrategyBuilder
for a predefined strategy.- Parameters:
sStrategy
- implementation defined partition assignment strategyxmlElement
- optional configuration context to be used to provide details if a ConfigurationException is detected.
-
-
Method Detail
-
realize
public PartitionAssignmentStrategy 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<PartitionAssignmentStrategy>
- 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
-
-