|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.coherence.config.builder.DefaultBuilderCustomization
com.tangosol.coherence.config.builder.EvictionPolicyBuilder
public class EvictionPolicyBuilder
The EvictionPolicyBuilder
builds a ConfigurableCacheMap.EvictionPolicy
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.tangosol.coherence.config.builder.ParameterizedBuilder |
---|
ParameterizedBuilder.ReflectionSupport |
Constructor Summary | |
---|---|
EvictionPolicyBuilder() |
Method Summary | |
---|---|
java.lang.String |
getEvictionType(com.tangosol.config.expression.ParameterResolver resolver) Obtains the EvictionPolicy type. |
ConfigurableCacheMap.EvictionPolicy |
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. |
boolean |
realizes(java.lang.Class clzClass, com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader) Determines if the ParameterizedBuilder will realize an instance of the specified class (without requiring the builder to actually realize an object). |
void |
setEvictionType(com.tangosol.config.expression.Expression expr) Set the EvictionPolicy type. |
Methods inherited from class com.tangosol.coherence.config.builder.DefaultBuilderCustomization |
---|
getCustomBuilder, setCustomBuilder |
Constructor Detail |
---|
public EvictionPolicyBuilder()
Method Detail |
---|
public java.lang.String getEvictionType(com.tangosol.config.expression.ParameterResolver resolver)
resolver
- the ParameterResolver
@Injectable
public void setEvictionType(com.tangosol.config.expression.Expression expr)
expr
- the EvictionPolicy typepublic boolean realizes(java.lang.Class clzClass, com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader)
ParameterizedBuilder
will realize an instance of the specified class (without requiring the builder to actually realize an object).
This method is synonymous with the Java keyword instanceof
but allows dynamic runtime type querying of the types of objects a builder may realize.
realizes
in interface ParameterizedBuilder.ReflectionSupport
clzClass
- the expected typeresolver
- the ParameterResolver
to use for resolving necessary Parameter
sloader
- the ClassLoader
for loading any necessary classes and if null
the ClassLoader
used to load the builder will be used insteadtrue
if the ParameterizedBuilder
will realize an instance of the class, false
otherwisepublic ConfigurableCacheMap.EvictionPolicy realize(com.tangosol.config.expression.ParameterResolver resolver, java.lang.ClassLoader loader, ParameterList listParameters)
ParameterResolver
to resolve values any referenced Parameter
s.realize
in interface ParameterizedBuilder
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® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |