Java 类org.quartz.PersistJobDataAfterExecution 实例源码

项目:redis-quartz    文件:RedisJobStore.java   
@SuppressWarnings("unchecked")
private boolean isPersistJobDataAfterExecution(String jobClassName) {
    boolean persistJobDataAfterExecution = false;
    try {
        Class<Job> jobClass = (Class<Job>) loadHelper.getClassLoader().loadClass(jobClassName);
        persistJobDataAfterExecution = ClassUtils.isAnnotationPresent(jobClass, PersistJobDataAfterExecution.class);
    } catch (Exception ex) {
        log.error("could not determine whether class: " + jobClassName + " is PersistJobDataAfterExecution annotated");
    }
    return persistJobDataAfterExecution;
}
项目:lams    文件:JobDetailImpl.java   
/**
 * @return whether the associated Job class carries the {@link PersistJobDataAfterExecution} annotation.
 */
public boolean isPersistJobDataAfterExecution() {

    return ClassUtils.isAnnotationPresent(jobClass, PersistJobDataAfterExecution.class);
}
项目:jooby    文件:MethodJobDetail.java   
@Override
public boolean isPersistJobDataAfterExecution() {
  return owner.getAnnotation(PersistJobDataAfterExecution.class) != null;
}
项目:quartz-glass    文件:JobBean.java   
public static boolean isPersistJobDataAfterExecution(Class<?> jobClass) {
    return getAnnotation(jobClass, PersistJobDataAfterExecution.class) != null;
}