org.quartz.PersistJobDataAfterExecution Java Examples
The following examples show how to use
org.quartz.PersistJobDataAfterExecution.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: RedisJobStore.java From redis-quartz with MIT License | 5 votes |
@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; }
Example #2
Source File: JobDetailImpl.java From lams with GNU General Public License v2.0 | 4 votes |
/** * @return whether the associated Job class carries the {@link PersistJobDataAfterExecution} annotation. */ public boolean isPersistJobDataAfterExecution() { return ClassUtils.isAnnotationPresent(jobClass, PersistJobDataAfterExecution.class); }
Example #3
Source File: JobBean.java From quartz-glass with Apache License 2.0 | 4 votes |
public static boolean isPersistJobDataAfterExecution(Class<?> jobClass) { return getAnnotation(jobClass, PersistJobDataAfterExecution.class) != null; }