Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


com.tangosol.coherence.config.builder
Interface ParameterizedBuilder

All Known Implementing Classes:
AddressProviderBuilder, ClassScheme, EvictionPolicyBuilder, InstanceBuilder, NamedEventInterceptorBuilder, StaticFactoryInstanceBuilder, UnitCalculatorBuilder, WrapperSocketAddressProviderBuilder

public interface ParameterizedBuilder

A ParameterizedBuilder is an implementation of the classic Builder Pattern that utilizes a ParameterResolver to resolve any required runtime Parameters necessary for realizing an object.

ParameterizedBuilders 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
static interface ParameterizedBuilder.ReflectionSupport
          An optional interface that ParameterizedBuilders 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 Parameters.

 

Method Detail

realize

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 Parameters.
Parameters:
resolver - the ParameterResolver for resolving named Parameters
loader - the ClassLoader for loading any necessary classes and if null the ClassLoader used to load the builder will be used instead
listParameters - an optional ParameterList (may be null) to be used for realizing the instance, eg: used as constructor parameters
Returns:
an instance of T

Skip navigation links

Oracle® Fusion Middleware Java API Reference for Oracle Coherence
12c (12.1.3.0.0)

E47890-01


Copyright © 2000, 2014, Oracle and/or its affiliates. All rights reserved.