Interface ParameterizedBuilder<T>
- All Known Subinterfaces:
AddressProviderBuilder
- All Known Implementing Classes:
ActionPolicyBuilder
,ActionPolicyBuilder.ActionPolicyParameterizedBuilder
,ActionPolicyBuilder.NullImplementationBuilder
,BeanBuilder
,ClassScheme
,ClusterQuorumPolicyBuilder
,CustomAddressProviderBuilder
,DaemonPoolBuilder
,ElementCalculatorBuilder
,EvictionPolicyBuilder
,FactoryBasedAddressProviderBuilder
,InetAddressRangeFilterBuilder
,InstanceBuilder
,InvalidConfigServiceLoadBalancerBuilder
,ListBasedAddressProviderBuilder
,LocalAddressProviderBuilder
,NamedEventInterceptorBuilder
,NamedResourceBuilder
,PartitionAssignmentStrategyBuilder
,PartitionedCacheQuorumPolicyBuilder
,PersistenceEnvironmentParamBuilder
,ProxyQuorumPolicyBuilder
,ProxyServiceLoadBalancerBuilder
,ReadLocatorBuilder
,ServiceFailurePolicyBuilder
,ServiceLoadBalancerBuilder
,SocketProviderBuilder
,SSLSocketProviderDependenciesBuilder
,SSLSocketProviderDependenciesBuilder.HostnameVerifierBuilder
,SSLSocketProviderDependenciesBuilder.ProviderBuilder
,StaticFactoryInstanceBuilder
,UnitCalculatorBuilder
,WrapperSocketAddressProviderBuilder
public interface ParameterizedBuilder<T>
A
ParameterizedBuilder
is an implementation of the classic Builder Pattern that utilizes a
ParameterResolver
to resolve any required runtime Parameter
s necessary for realizing an object.
ParameterizedBuilder
s are typically used to:
1. encapsulate the ability to dynamically configure the mechanism to realize/create/construct/resolve objects of a required type at runtime, typically based on some externally defined and parameterized configuration.
2. allow developers to postpone the creation of required objects at runtime, thus allowing lazy initialization of system components.
- Since:
- Coherence 12.1.2
- Author:
- bo 2011.06.23
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionrealize
(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.
-
Method Details
-
realize
Realizes (creates if necessary) an instance of a object of type T, using the providedParameterResolver
to resolve values any referencedParameter
s.- 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
-