org.onebusaway.container.cache
Class PropertyPathExpressionCacheableObjectKeyFactory

java.lang.Object
  extended by org.onebusaway.container.cache.PropertyPathExpressionCacheableObjectKeyFactory
All Implemented Interfaces:
Serializable, CacheableObjectKeyFactory

public class PropertyPathExpressionCacheableObjectKeyFactory
extends Object
implements CacheableObjectKeyFactory, Serializable

Factory for producing a Serializable cache key from an arbitrary object by first applying a link PropertyPathExpression to the object and then applying a secondary CacheableObjectKeyFactory to the result.

Author:
bdferris
See Also:
CacheableObjectKeyFactory, DefaultCacheableKeyFactory, PropertyPathExpression, Serialized Form

Constructor Summary
PropertyPathExpressionCacheableObjectKeyFactory(org.onebusaway.collections.PropertyPathExpression expression, CacheableObjectKeyFactory objectKeyFactory)
           
 
Method Summary
 CacheKeyInfo createKey(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyPathExpressionCacheableObjectKeyFactory

public PropertyPathExpressionCacheableObjectKeyFactory(org.onebusaway.collections.PropertyPathExpression expression,
                                                       CacheableObjectKeyFactory objectKeyFactory)
Method Detail

createKey

public CacheKeyInfo createKey(Object object)
Specified by:
createKey in interface CacheableObjectKeyFactory


Copyright © 2011 OneBusAway. All Rights Reserved.