org.mule.cache.keygenerator
Class ExpressionKeyGenerator
java.lang.Object
org.mule.cache.keygenerator.ExpressionKeyGenerator
- All Implemented Interfaces:
- KeyGenerator
public class ExpressionKeyGenerator
- extends Object
- implements KeyGenerator
Implements KeyGenerator
using the Mule expression language to
generate the cache keys.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected Log logger
ExpressionKeyGenerator
public ExpressionKeyGenerator()
generateKey
public Serializable generateKey(MuleEvent event)
throws NotSerializableException
- Description copied from interface:
KeyGenerator
- Generates a key for an event.
The generation algorithm should return the same key value for all the
events that are considered equals.
- Specified by:
generateKey
in interface KeyGenerator
- Parameters:
event
- the event to generate the key for
- Returns:
- the generated key
- Throws:
NotSerializableException
- if the generated key is not Serializable
getExpression
public String getExpression()
setExpression
public void setExpression(String expression)
Copyright © 2003-2011 MuleSoft, Inc.. All Rights Reserved.