/** * Process a particular annotation which type is the same as the * one returned by @see getAnnotationType(). All information * pertinent to the annotation and its context is encapsulated * in the passed AnnotationInfo instance. * * @param ainfo the annotation information * @param rcContexts an array of ResourceContainerContext * @param HandlerProcessingResult */ protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { PersistenceUnit emfRefAn = (PersistenceUnit)ainfo.getAnnotation(); return processEmfRef(ainfo, rcContexts, emfRefAn); }
emfRefs = getEmfReferenceDescriptors(logicalName, rcContexts); processNewEmfRefAnnotation(emfRef, logicalName, emfRefAn); getInjectionMethodPropertyName(m, ainfo); validateInjectionMethod(m, ainfo); emfRefs = getEmfReferenceDescriptors(logicalName, rcContexts); processNewEmfRefAnnotation(emfRef, logicalName, emfRefAn); log(Level.SEVERE, ainfo, localStrings.getLocalString( "enterprise.deployment.annotation.handlers.nonametypelevel", "TYPE-Level annotation symbol on class must specify name.")); return getDefaultFailedResult(); emfRefs = getEmfReferenceDescriptors(logicalName, rcContexts); for (EntityManagerFactoryReferenceDescriptor emfRef : emfRefs) { if (emfRef.getName().length() == 0) { // a new one processNewEmfRefAnnotation(emfRef, logicalName, emfRefAn); return getDefaultProcessedResult();
emfRefs = getEmfReferenceDescriptors(logicalName, rcContexts); processNewEmfRefAnnotation(emfRef, logicalName, emfRefAn); getInjectionMethodPropertyName(m, ainfo); validateInjectionMethod(m, ainfo); emfRefs = getEmfReferenceDescriptors(logicalName, rcContexts); processNewEmfRefAnnotation(emfRef, logicalName, emfRefAn); log(Level.SEVERE, ainfo, localStrings.getLocalString( "enterprise.deployment.annotation.handlers.nonametypelevel", "TYPE-Level annotation symbol on class must specify name.")); return getDefaultFailedResult(); emfRefs = getEmfReferenceDescriptors(logicalName, rcContexts); for (EntityManagerFactoryReferenceDescriptor emfRef : emfRefs) { if (emfRef.getName().length() == 0) { // a new one processNewEmfRefAnnotation(emfRef, logicalName, emfRefAn); return getDefaultProcessedResult();
/** * Process a particular annotation which type is the same as the * one returned by @see getAnnotationType(). All information * pertinent to the annotation and its context is encapsulated * in the passed AnnotationInfo instance. * * @param ainfo the annotation information * @param rcContexts an array of ResourceContainerContext * @param HandlerProcessingResult */ protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { PersistenceUnit emfRefAn = (PersistenceUnit)ainfo.getAnnotation(); return processEmfRef(ainfo, rcContexts, emfRefAn); }