org.onebusaway.container.cache
Annotation Type CacheableArgument


@Retention(value=RUNTIME)
@Target(value=PARAMETER)
public @interface CacheableArgument

A method parameter annotation that is used to further control how method cache keys are generated by the CacheableMethodManager#getKeyFactoryForParameterType(Class, boolean)

Author:
bdferris
See Also:
CacheableAnnotationInterceptor, CacheableMethodKeyFactory, CacheableMethodManager

Optional Element Summary
 boolean cacheRefreshIndicator
           
 String keyProperty
          A bean property expression that is evaluated against the source method argument to produce a cache key for that argument
 

keyProperty

public abstract String keyProperty
A bean property expression that is evaluated against the source method argument to produce a cache key for that argument

Returns:
a Serializable or something whose Object.toString() produces a unique value
Default:
""

cacheRefreshIndicator

public abstract boolean cacheRefreshIndicator
Default:
false


Copyright © 2012 OneBusAway. All Rights Reserved.