use of javax.persistence.PersistenceContexts in project Payara by payara.
the class EntityManagerReferencesHandler method processAnnotation.
@Override
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException {
PersistenceContexts annotation = (PersistenceContexts) ainfo.getAnnotation();
PersistenceContext[] emRefAnnotations = annotation.value();
List<HandlerProcessingResult> results = new ArrayList<>();
for (PersistenceContext emRef : emRefAnnotations) {
results.add(processEmRef(ainfo, rcContexts, emRef));
}
return getOverallProcessingResult(results);
}
Aggregations