Search in sources :

Example 1 with ConcurrencyManagement

use of javax.ejb.ConcurrencyManagement in project wildfly by wildfly.

the class ConcurrencyManagementMergingProcessor method handleAnnotations.

@Override
protected void handleAnnotations(final DeploymentUnit deploymentUnit, final EEApplicationClasses applicationClasses, final DeploymentReflectionIndex deploymentReflectionIndex, final Class<?> componentClass, final SessionBeanComponentDescription componentConfiguration) throws DeploymentUnitProcessingException {
    final EEModuleClassDescription clazz = applicationClasses.getClassByName(componentClass.getName());
    //we only care about annotations on the bean class itself
    if (clazz == null) {
        return;
    }
    ClassAnnotationInformation<ConcurrencyManagement, ConcurrencyManagementType> management = clazz.getAnnotationInformation(ConcurrencyManagement.class);
    if (management == null) {
        return;
    }
    if (!management.getClassLevelAnnotations().isEmpty()) {
        componentConfiguration.setConcurrencyManagementType(management.getClassLevelAnnotations().get(0));
    }
}
Also used : ConcurrencyManagement(javax.ejb.ConcurrencyManagement) ConcurrencyManagementType(javax.ejb.ConcurrencyManagementType) EEModuleClassDescription(org.jboss.as.ee.component.EEModuleClassDescription)

Aggregations

ConcurrencyManagement (javax.ejb.ConcurrencyManagement)1 ConcurrencyManagementType (javax.ejb.ConcurrencyManagementType)1 EEModuleClassDescription (org.jboss.as.ee.component.EEModuleClassDescription)1