Class NamedResourceBuilder<T>
- java.lang.Object
-
- com.tangosol.coherence.config.builder.NamedResourceBuilder<T>
-
- Type Parameters:
T
- the type of the named resource
- All Implemented Interfaces:
ParameterizedBuilder<T>
public class NamedResourceBuilder<T> extends Object implements ParameterizedBuilder<T>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder
ParameterizedBuilder.ReflectionSupport
-
-
Constructor Summary
Constructors Constructor Description NamedResourceBuilder(ParameterizedBuilder<T> delegate, String sName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterizedBuilder<T>
getDelegate()
String
getName()
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.
-
-
-
Constructor Detail
-
NamedResourceBuilder
public NamedResourceBuilder(ParameterizedBuilder<T> delegate, String sName)
-
-
Method Detail
-
getDelegate
public ParameterizedBuilder<T> getDelegate()
-
getName
public String getName()
-
realize
public T realize(ParameterResolver resolver, ClassLoader loader, ParameterList listParameters)
Description copied from interface:ParameterizedBuilder
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<T>
- 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
-
-