org.mule.keygenerator
Class ExpressionMuleEventKeyGenerator
java.lang.Object
org.mule.keygenerator.ExpressionMuleEventKeyGenerator
- All Implemented Interfaces:
- MuleEventKeyGenerator
public class ExpressionMuleEventKeyGenerator
- extends Object
- implements MuleEventKeyGenerator
Implements MuleEventKeyGenerator using the Mule expression language to
generate the cache keys.
|
Field Summary |
protected org.apache.commons.logging.Log |
logger
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected org.apache.commons.logging.Log logger
ExpressionMuleEventKeyGenerator
public ExpressionMuleEventKeyGenerator()
generateKey
public Serializable generateKey(MuleEvent event)
throws NotSerializableException
- Description copied from interface:
MuleEventKeyGenerator
- 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 MuleEventKeyGenerator
- 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-2013 MuleSoft, Inc.. All Rights Reserved.