Search in sources :

Example 1 with PersistenceContexts

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);
}
Also used : PersistenceContexts(javax.persistence.PersistenceContexts) HandlerProcessingResult(org.glassfish.apf.HandlerProcessingResult) ArrayList(java.util.ArrayList) PersistenceContext(javax.persistence.PersistenceContext)

Aggregations

ArrayList (java.util.ArrayList)1 PersistenceContext (javax.persistence.PersistenceContext)1 PersistenceContexts (javax.persistence.PersistenceContexts)1 HandlerProcessingResult (org.glassfish.apf.HandlerProcessingResult)1