|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
A - The type of annotation this context information is for. One of CacheResult,
CachePut, CacheRemoveEntry, or
CacheRemoveAll.public interface CacheMethodDetails<A extends Annotation>
Static information about a method annotated with one of:
CacheResult, CachePut, CacheRemoveEntry, or CacheRemoveAll
CacheResolverFactory.getCacheResolver(CacheMethodDetails) to determine the CacheResolver to use
with the method.
CacheResolverFactory| Method Summary | |
|---|---|
Set<Annotation> |
getAnnotations()
An immutable Set of all Annotations on this method |
A |
getCacheAnnotation()
The caching related annotation on the method. |
String |
getCacheName()
The cache name resolved by the implementation, this may not match the cache name specified in the caching annotation on this method. |
Method |
getMethod()
The annotated method |
| Method Detail |
|---|
Method getMethod()
Set<Annotation> getAnnotations()
A getCacheAnnotation()
CacheResult, CachePut, CacheRemoveEntry, or CacheRemoveAll
String getCacheName()
CacheDefaults annotation is checked. If that annotation
does not exist or does not have its cacheName attribute set then the following cache name generation rules are
followed:
"fully qualified class name"."method name"("fully qualified parameter class names")
For example:
package my.app;
public class DomainDao {
@CacheResult
public Domain getDomain(String domainId, int index) {
...
}
}
Results in the cache name: "my.app.DomainDao.getDomain(java.lang.String,int)"
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||