org.infinispan.cdi.util
Class CacheHelper

java.lang.Object
  extended by org.infinispan.cdi.util.CacheHelper

public final class CacheHelper
extends Object

Author:
Kevin Pollet (C) 2011 SERLI

Method Summary
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.
static String getDefaultMethodCacheName(Method method)
          Returns the default cache name associated to the given method according to JSR-107 specification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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.