Search in sources :

Example 1 with Schedules

use of javax.ejb.Schedules in project Payara by payara.

the class SchedulesHandler method processAnnotation.

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

Aggregations

ArrayList (java.util.ArrayList)1 Schedule (javax.ejb.Schedule)1 Schedules (javax.ejb.Schedules)1 HandlerProcessingResult (org.glassfish.apf.HandlerProcessingResult)1