Class ServiceLoadBalancerBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.ServiceLoadBalancerBuilder
-
- All Implemented Interfaces:
ParameterizedBuilder<ServiceLoadBalancer>
- Direct Known Subclasses:
InvalidConfigServiceLoadBalancerBuilder
,ProxyServiceLoadBalancerBuilder
public abstract class ServiceLoadBalancerBuilder extends Object implements ParameterizedBuilder<ServiceLoadBalancer>
ServiceLoadBalancerBuilder
defers evaluating configuration parameters until ServiceLoadBalancer is instantiated.- Since:
- Coherence 12.2.1
- Author:
- jf 2015.02.10
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
-
Field Summary
Fields Modifier and Type Field Description protected XmlElement
f_xmlConfig
Xml Configuration Element to use to report ConfigurationException.protected ParameterizedBuilder<ServiceLoadBalancer>
m_builder
Customized ServiceLoadBalancerBuilder.
-
Constructor Summary
Constructors Constructor Description ServiceLoadBalancerBuilder(ParameterizedBuilder<ServiceLoadBalancer> builder, XmlElement xmlConfig)
ConstructsServiceLoadBalancerBuilder
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ServiceLoadBalancer
getDefaultLoadBalancer()
Use thisServiceLoadBalancer
when a customized ServiceLoadBalancer is not provided.ServiceLoadBalancer
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.
-
-
-
Field Detail
-
m_builder
protected ParameterizedBuilder<ServiceLoadBalancer> m_builder
Customized ServiceLoadBalancerBuilder.
-
f_xmlConfig
protected final XmlElement f_xmlConfig
Xml Configuration Element to use to report ConfigurationException. This element is optional.
-
-
Constructor Detail
-
ServiceLoadBalancerBuilder
public ServiceLoadBalancerBuilder(ParameterizedBuilder<ServiceLoadBalancer> builder, XmlElement xmlConfig)
ConstructsServiceLoadBalancerBuilder
- Parameters:
builder
- optional customization of ServiceLoadBalancer. if null, usegetDefaultLoadBalancer()
.
-
-
Method Detail
-
realize
public ServiceLoadBalancer 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<ServiceLoadBalancer>
- 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
-
getDefaultLoadBalancer
public abstract ServiceLoadBalancer getDefaultLoadBalancer()
Use thisServiceLoadBalancer
when a customized ServiceLoadBalancer is not provided.- Returns:
- default ServiceLoadBalancer
-
-