Class InvalidConfigServiceLoadBalancerBuilder
java.lang.Object
com.tangosol.coherence.config.builder.ServiceLoadBalancerBuilder
com.tangosol.coherence.config.builder.InvalidConfigServiceLoadBalancerBuilder
- All Implemented Interfaces:
ParameterizedBuilder<ServiceLoadBalancer>
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
ConstructorsConstructorDescriptionInvalidConfigServiceLoadBalancerBuilder(String sServiceKind, XmlElement xmlConfig) ConstructsInvalidConfigServiceLoadBalancerBuilder. -
Method Summary
Modifier and TypeMethodDescriptionUse thisServiceLoadBalancerwhen a customized ServiceLoadBalancer is not provided.realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters) Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolverto resolve values any referencedParameters.
-
Constructor Details
-
InvalidConfigServiceLoadBalancerBuilder
ConstructsInvalidConfigServiceLoadBalancerBuilder. Defer reporting configuration exception until instantiated.- Parameters:
sServiceKind- invalid load-balancer default value or used on invalid schemexmlConfig- xml config element
-
-
Method Details
-
getDefaultLoadBalancer
Use thisServiceLoadBalancerwhen a customized ServiceLoadBalancer is not provided.- Specified by:
getDefaultLoadBalancerin 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 providedParameterResolverto resolve values any referencedParameters.- Specified by:
realizein interfaceParameterizedBuilder<ServiceLoadBalancer>- Overrides:
realizein classServiceLoadBalancerBuilder- Parameters:
resolver- theParameterResolverfor resolving namedParametersloader- theClassLoaderfor loading any necessary classes and ifnulltheClassLoaderused 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
-