use of javax.ejb.EJBs in project Payara by payara.
the class EJBsHandler method processAnnotation.
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException {
EJBs ejbsAnnotation = (EJBs) ainfo.getAnnotation();
EJB[] ejbAnnotations = ejbsAnnotation.value();
if (ejbAnnotations.length == 0) {
String localizedMsg = localStrings.getLocalString("enterprise.deployment.annotation.handlers.emptyEJBs", "No @EJB elements in @EJBs on " + ainfo.getAnnotatedElement(), new Object[] { ejbsAnnotation, ainfo.getAnnotatedElement() });
logger.log(Level.WARNING, localizedMsg);
}
List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>();
for (EJB ejb : ejbAnnotations) {
results.add(processEJB(ainfo, rcContexts, ejb));
}
return getOverallProcessingResult(results);
}
Aggregations