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>
AParameterizedBuilder
is an implementation of the classic Builder Pattern that utilizes aParameterResolver
to resolve any required runtimeParameter
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
Nested Classes Modifier and Type Interface Description static interface
ParameterizedBuilder.ReflectionSupport
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
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.
-
-
-
Method Detail
-
realize
T 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.- 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
-
-