@Override public HandlerProcessingResult processAnnotation(AnnotationInfo annInfo) throws AnnotationProcessorException { WebServiceRef annotation = (WebServiceRef) annInfo.getAnnotation(); return(processAWsRef(annInfo, annotation)); }
/** * This entry point is used both for a single @Resource and iteratively * from a compound @Resources processor. */ protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { Resource resourceAn = (Resource)ainfo.getAnnotation(); return processResource(ainfo, rcContexts, resourceAn); }
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { DataSourceDefinition dataSourceDefnAn = (DataSourceDefinition)ainfo.getAnnotation(); return processAnnotation(dataSourceDefnAn, ainfo, rcContexts); }
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts) throws AnnotationProcessorException { return processSchedule((Schedule)ainfo.getAnnotation(), ainfo, ejbContexts); }
/** * This entry point is used both for a single @Resource and iteratively * from a compound @Resources processor. */ protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { Resource resourceAn = (Resource)ainfo.getAnnotation(); return processResource(ainfo, rcContexts, resourceAn); }
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts) throws AnnotationProcessorException { return processSchedule((Schedule)ainfo.getAnnotation(), ainfo, ejbContexts); }
@Override public HandlerProcessingResult processAnnotation(AnnotationInfo annInfo) throws AnnotationProcessorException { WebServiceRef annotation = (WebServiceRef) annInfo.getAnnotation(); return(processAWsRef(annInfo, annotation)); }
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { PersistenceContexts annotation = (PersistenceContexts) ainfo.getAnnotation(); PersistenceContext[] emRefAnnotations = annotation.value(); List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>(); for(PersistenceContext emRef : emRefAnnotations) { results.add(processEmRef(ainfo, rcContexts, emRef)); } return getOverallProcessingResult(results); }
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { PersistenceUnits annotation = (PersistenceUnits) ainfo.getAnnotation(); PersistenceUnit[] emfRefAnnotations = annotation.value(); List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>(); for(PersistenceUnit emfRef : emfRefAnnotations) { results.add(processEmfRef(ainfo, rcContexts, emfRef)); } return getOverallProcessingResult(results); }
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { PersistenceUnits annotation = (PersistenceUnits) ainfo.getAnnotation(); PersistenceUnit[] emfRefAnnotations = annotation.value(); List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>(); for(PersistenceUnit emfRef : emfRefAnnotations) { results.add(processEmfRef(ainfo, rcContexts, emfRef)); } return getOverallProcessingResult(results); }
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts) throws AnnotationProcessorException { Schedules annotation = (Schedules) ainfo.getAnnotation(); Schedule[] schAnnotations = annotation.value(); List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>(); for(Schedule sch : schAnnotations) { results.add(processSchedule(sch, ainfo, ejbContexts)); } return getOverallProcessingResult(results); }
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { PersistenceContexts annotation = (PersistenceContexts) ainfo.getAnnotation(); PersistenceContext[] emRefAnnotations = annotation.value(); List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>(); for(PersistenceContext emRef : emRefAnnotations) { results.add(processEmRef(ainfo, rcContexts, emRef)); } return getOverallProcessingResult(results); }
protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, EjbContext[] ejbContexts) throws AnnotationProcessorException { Schedules annotation = (Schedules) ainfo.getAnnotation(); Schedule[] schAnnotations = annotation.value(); List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>(); for(Schedule sch : schAnnotations) { results.add(processSchedule(sch, ainfo, ejbContexts)); } return getOverallProcessingResult(results); }
/** * This entry point is used both for a single @EJB and iteratively * from a compound @EJBs processor. */ protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { Resources resourcesAn = (Resources)ainfo.getAnnotation(); Resource[] resourceAns = resourcesAn.value(); List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>(); for(Resource res : resourceAns) { results.add(processResource(ainfo, rcContexts, res)); } return getOverallProcessingResult(results); }
/** * This entry point is used both for a single @EJB and iteratively * from a compound @EJBs processor. */ protected HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, ResourceContainerContext[] rcContexts) throws AnnotationProcessorException { Resources resourcesAn = (Resources)ainfo.getAnnotation(); Resource[] resourceAns = resourcesAn.value(); List<HandlerProcessingResult> results = new ArrayList<HandlerProcessingResult>(); for(Resource res : resourceAns) { results.add(processResource(ainfo, rcContexts, res)); } return getOverallProcessingResult(results); }
private HandlerProcessingResultImpl getFailureResult(AnnotationInfo element, String message, boolean doLog) { HandlerProcessingResultImpl result = new HandlerProcessingResultImpl(); result.addResult(getAnnotationType(), ResultType.FAILED); if (doLog) { Class c = (Class) element.getAnnotatedElement(); String className = c.getName(); String localString = localStrings.getLocalString( "enterprise.deployment.annotation.handlers.datasourcedefinitionsfailure", "failed to handle annotation [ {0} ] on class [ {1} ] due to the following exception : ", element.getAnnotation(), className); logger.log(Level.WARNING, localString, message); } return result; }
private HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebBundleDescriptor webBundleDesc) { DeclareRoles rolesRefAn = (DeclareRoles)ainfo.getAnnotation(); for (String roleName : rolesRefAn.value()) { Role role = new Role(roleName); webBundleDesc.addRole(role); } return getDefaultProcessedResult(); }
private HandlerProcessingResult processAnnotation(AnnotationInfo ainfo, WebBundleDescriptor webBundleDesc) { DeclareRoles rolesRefAn = (DeclareRoles)ainfo.getAnnotation(); for (String roleName : rolesRefAn.value()) { Role role = new Role(roleName); webBundleDesc.addRole(role); } return getDefaultProcessedResult(); }
public HandlerProcessingResult processAnnotation(AnnotationInfo element) throws AnnotationProcessorException { AnnotatedElementHandler aeHandler = element.getProcessingContext().getHandler(); ConnectionDefinition connDefn = (ConnectionDefinition) element.getAnnotation(); if (aeHandler instanceof RarBundleContext) { handleAnnotation(aeHandler, connDefn, element); } else { getFailureResult(element, "not a rar bundle context", true); } return getDefaultProcessedResult(); }
public HandlerProcessingResult processAnnotation(AnnotationInfo element) throws AnnotationProcessorException { AnnotatedElementHandler aeHandler = element.getProcessingContext().getHandler(); ConfigProperty configProperty = (ConfigProperty) element.getAnnotation(); if (aeHandler instanceof RarBundleContext) { RarBundleContext rbc = (RarBundleContext) aeHandler; ConnectorDescriptor desc = rbc.getDescriptor(); handleConfigPropertyAnnotation(configProperty, element, desc); } else { return getFailureResult(element, "not a rar bundle context", true); } return getDefaultProcessedResult(); }