org.infinispan.cdi.util
Class CacheHelper
java.lang.Object
org.infinispan.cdi.util.CacheHelper
public final class CacheHelper
- extends Object
- Author:
- Kevin Pollet (C) 2011 SERLI
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getDefaultMethodCacheName
public static String getDefaultMethodCacheName(Method method)
- Returns the default cache name associated to the given method according to JSR-107 specification.
- Parameters:
method
- the method.
- Returns:
- the default cache name for the given method.
generateCacheKey
public static javax.cache.interceptor.CacheKey generateCacheKey(Class<? extends javax.cache.interceptor.CacheKeyGenerator> cacheKeyGeneratorClass,
InvocationContext context)
- Generates a
CacheKey
for the given InvocationContext
by using the given CacheKeyGenerator
class.
- Parameters:
cacheKeyGeneratorClass
- the cache key generator class.context
- the invocation context.
- Returns:
- an instance of
CacheKey
for the given InvocationContext
.
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.