Class ProxyServiceLoadBalancerBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.ServiceLoadBalancerBuilder
-
- com.tangosol.coherence.config.builder.ProxyServiceLoadBalancerBuilder
-
- All Implemented Interfaces:
ParameterizedBuilder<ServiceLoadBalancer>
public class ProxyServiceLoadBalancerBuilder extends ServiceLoadBalancerBuilder
ProxyServiceLoadBalancerBuilder
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 inherited from class com.tangosol.coherence.config.builder.ServiceLoadBalancerBuilder
f_xmlConfig, m_builder
-
-
Constructor Summary
Constructors Constructor Description ProxyServiceLoadBalancerBuilder(ParameterizedBuilder bldr, XmlElement xmlConfig)
ConstructsProxyServiceLoadBalancerBuilder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.
-
-
-
Constructor Detail
-
ProxyServiceLoadBalancerBuilder
public ProxyServiceLoadBalancerBuilder(ParameterizedBuilder bldr, XmlElement xmlConfig)
ConstructsProxyServiceLoadBalancerBuilder
- Parameters:
bldr
- optional customized ProxyServiceLoadBalancerxmlConfig
- optional configuration element for reporting configuration exception.
-
-
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>
- Overrides:
realize
in classServiceLoadBalancerBuilder
- 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 ServiceLoadBalancer getDefaultLoadBalancer()
Use thisServiceLoadBalancer
when a customized ServiceLoadBalancer is not provided.- Specified by:
getDefaultLoadBalancer
in classServiceLoadBalancerBuilder
- Returns:
- default ServiceLoadBalancer
-
-