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
Class EvictionPolicyBuilder

java.lang.Object
  extended by com.tangosol.coherence.config.builder.DefaultBuilderCustomization
      extended by com.tangosol.coherence.config.builder.EvictionPolicyBuilder

All Implemented Interfaces:
BuilderCustomization, ParameterizedBuilder, ParameterizedBuilder.ReflectionSupport

public class EvictionPolicyBuilder
extends DefaultBuilderCustomization
implements ParameterizedBuilder, ParameterizedBuilder.ReflectionSupport

The EvictionPolicyBuilder builds a ConfigurableCacheMap.EvictionPolicy.

Since:
Coherence 12.1.2
Author:
pfm 2012.01.07

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 Parameters.
 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

EvictionPolicyBuilder

public EvictionPolicyBuilder()

Method Detail

getEvictionType

public java.lang.String getEvictionType(com.tangosol.config.expression.ParameterResolver resolver)
Obtains the EvictionPolicy type.
Parameters:
resolver - the ParameterResolver
Returns:
the type of EvictionPolicy

setEvictionType

@Injectable
public void setEvictionType(com.tangosol.config.expression.Expression expr)
Set the EvictionPolicy type.
Parameters:
expr - the EvictionPolicy type

realizes

public 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).

This method is synonymous with the Java keyword instanceof but allows dynamic runtime type querying of the types of objects a builder may realize.

Specified by:
realizes in interface ParameterizedBuilder.ReflectionSupport
Parameters:
clzClass - the expected type
resolver - the ParameterResolver to use for resolving necessary Parameters
loader - the ClassLoader for loading any necessary classes and if null the ClassLoader used to load the builder will be used instead
Returns:
true if the ParameterizedBuilder will realize an instance of the class, false otherwise

realize

public 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 Parameters.
Specified by:
realize in interface ParameterizedBuilder
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.