Class ServiceFailurePolicyBuilder
- java.lang.Object
-
- com.tangosol.coherence.config.builder.ServiceFailurePolicyBuilder
-
- All Implemented Interfaces:
ParameterizedBuilder<ServiceFailurePolicy>
public class ServiceFailurePolicyBuilder extends Object implements ParameterizedBuilder<ServiceFailurePolicy>
Build a default or customizedServiceFailurePolicy
.Defer configuration exception reporting until instantiated.
- Since:
- Coherence 12.2.1
- Author:
- jf 2015.02.24
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
-
Constructor Summary
Constructors Constructor Description ServiceFailurePolicyBuilder(int nPolicy)
Create Defaults.ServiceFailurePolicyBuilder(ParameterizedBuilder<ServiceFailurePolicy> builder, XmlElement xmlConfig)
ServiceFailurePolicy
constructor for customized builder.ServiceFailurePolicyBuilder(String sPolicy, XmlElement xmlConfig)
Default ServiceFailurePolicy from Xml value in configuration <service-failure-policy>.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ServiceFailurePolicy
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
-
ServiceFailurePolicyBuilder
public ServiceFailurePolicyBuilder(int nPolicy)
Create Defaults.- Parameters:
nPolicy
- one ofDefaultServiceFailurePolicy.POLICY_EXIT_CLUSTER
,DefaultServiceFailurePolicy.POLICY_EXIT_PROCESS
orDefaultServiceFailurePolicy.POLICY_LOGGING
-
ServiceFailurePolicyBuilder
public ServiceFailurePolicyBuilder(ParameterizedBuilder<ServiceFailurePolicy> builder, XmlElement xmlConfig)
ServiceFailurePolicy
constructor for customized builder.- Parameters:
builder
- customized builderxmlConfig
- optional configuration element for reporting configuration error.
-
ServiceFailurePolicyBuilder
public ServiceFailurePolicyBuilder(String sPolicy, XmlElement xmlConfig)
Default ServiceFailurePolicy from Xml value in configuration <service-failure-policy>.- Parameters:
sPolicy
- default ServiceFailurePolicyDefaultServiceFailurePolicy
xmlConfig
- optional configuration element for reporting configuration error.
-
-
Method Detail
-
realize
public ServiceFailurePolicy 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<ServiceFailurePolicy>
- 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
-
-