Class InvalidConfigServiceLoadBalancerBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.ServiceLoadBalancerBuilder
-
- com.tangosol.coherence.config.builder.InvalidConfigServiceLoadBalancerBuilder
-
- All Implemented Interfaces:
ParameterizedBuilder<ServiceLoadBalancer>
public class InvalidConfigServiceLoadBalancerBuilder extends ServiceLoadBalancerBuilder
InvalidConfigServiceLoadBalancerBuilder
defers reporting configuration exception until realized. Enables non-autostarted services to be improperly configured and configuration error reporting performed only if containing service is started.- 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 InvalidConfigServiceLoadBalancerBuilder(String sServiceKind, XmlElement xmlConfig)
ConstructsInvalidConfigServiceLoadBalancerBuilder
.
-
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
-
InvalidConfigServiceLoadBalancerBuilder
public InvalidConfigServiceLoadBalancerBuilder(String sServiceKind, XmlElement xmlConfig)
ConstructsInvalidConfigServiceLoadBalancerBuilder
. Defer reporting configuration exception until instantiated.- Parameters:
sServiceKind
- invalid load-balancer default value or used on invalid schemexmlConfig
- xml config element
-
-
Method Detail
-
getDefaultLoadBalancer
public ServiceLoadBalancer getDefaultLoadBalancer()
Use thisServiceLoadBalancer
when a customized ServiceLoadBalancer is not provided.- Specified by:
getDefaultLoadBalancer
in classServiceLoadBalancerBuilder
- Returns:
- default ServiceLoadBalancer
-
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
-
-