|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParameterizedBuilder
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.
Nested Class Summary | |
---|---|
static interface |
ParameterizedBuilder.ReflectionSupport An optional interface that ParameterizedBuilder s may implement to provide runtime type information about the type of objects that may be built. |
Method Summary | |
---|---|
java.lang.Object |
realize(com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader, ParameterList listParameters) Realizes (creates if necessary) an instance of a object of type T, using the provided ParameterResolver to resolve values any referenced Parameter s. |
Method Detail |
---|
java.lang.Object realize(com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader, ParameterList listParameters)
ParameterResolver
to resolve values any referenced Parameter
s.resolver
- the ParameterResolver
for resolving named Parameter
sloader
- the ClassLoader
for loading any necessary classes and if null
the ClassLoader
used to load the builder will be used insteadlistParameters
- an optional ParameterList
(may be null
) to be used for realizing the instance, eg: used as constructor parameters
|
Oracle® Coherence Java API Reference Release 12.1.2.0.3 E26043-02 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |