use of org.jboss.ejb3.annotation.Cache in project wildfly by wildfly.
the class CacheMergingProcessor method handleAnnotations.
@Override
protected void handleAnnotations(DeploymentUnit deploymentUnit, EEApplicationClasses applicationClasses, DeploymentReflectionIndex deploymentReflectionIndex, Class<?> componentClass, StatefulComponentDescription componentConfiguration) throws DeploymentUnitProcessingException {
final EEModuleClassDescription clazz = applicationClasses.getClassByName(componentClass.getName());
//we only care about annotations on the bean class itself
if (clazz == null) {
return;
}
final ClassAnnotationInformation<Cache, CacheInfo> cache = clazz.getAnnotationInformation(Cache.class);
if (cache == null) {
return;
}
if (!cache.getClassLevelAnnotations().isEmpty()) {
componentConfiguration.setCache(cache.getClassLevelAnnotations().get(0));
}
}
Aggregations