@Produces @CDIGenericCache public Cache createCache(final BeanManager beanManager, final InjectionPoint injectionPoint) { final Annotated annotated = injectionPoint.getAnnotated(); final boolean annotationPresent = annotated.isAnnotationPresent(CDIGenericCache.class); if (annotationPresent) { final Class<?> aClass = annotated.getAnnotation(CDIGenericCache.class).clazz2Cache(); return new GenericCacheThreadsave(aClass, false); } else { if (logger.isDebugEnabled()) { logger.debug("Annotation CDIGenericCache not present..."); } } return null; } }
logger.debug("Key not found " + className + " class cacheable -> will create a new cached instance " + t); final GenericCacheThreadsave cache = new GenericCacheThreadsave(t.getClass(), false); try { cache.fillCache(t);