当前位置: 首页>>代码示例>>Java>>正文


Java ClassUtils类代码示例

本文整理汇总了Java中org.quartz.utils.ClassUtils的典型用法代码示例。如果您正苦于以下问题:Java ClassUtils类的具体用法?Java ClassUtils怎么用?Java ClassUtils使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ClassUtils类属于org.quartz.utils包,在下文中一共展示了ClassUtils类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: createJobRunShell

import org.quartz.utils.ClassUtils; //导入依赖的package包/类
/**
 * <p>
 * Called by the <class>{@link org.quartz.core.QuartzSchedulerThread}
 * </code> to obtain instances of <code>
 * {@link org.quartz.core.JobRunShell}</code>.
 * </p>
 */
public JobRunShell createJobRunShell(TriggerFiredBundle bundle)
        throws SchedulerException {
    ExecuteInJTATransaction jtaAnnotation = ClassUtils.getAnnotation(bundle.getJobDetail().getJobClass(), ExecuteInJTATransaction.class);
    if(jtaAnnotation == null)
        return new JobRunShell(scheduler, bundle);
    else {
        int timeout = jtaAnnotation.timeout();
        if (timeout >= 0) {
            return new JTAJobRunShell(scheduler, bundle, timeout);
        } else {
            return new JTAJobRunShell(scheduler, bundle);
        }
    }
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:22,代码来源:JTAAnnotationAwareJobRunShellFactory.java

示例2: isJobConcurrentExectionDisallowed

import org.quartz.utils.ClassUtils; //导入依赖的package包/类
@SuppressWarnings("unchecked")
private boolean isJobConcurrentExectionDisallowed(String jobClassName) {
	boolean jobConcurrentExectionDisallowed = false;
	try {
		Class<Job> jobClass = (Class<Job>) loadHelper.getClassLoader().loadClass(jobClassName);
		jobConcurrentExectionDisallowed = ClassUtils.isAnnotationPresent(jobClass, DisallowConcurrentExecution.class);
	} catch (Exception ex) {
		log.error("could not determine whether class: " + jobClassName + " is JobConcurrentExectionDisallowed annotated");
	}
	return jobConcurrentExectionDisallowed;
}
 
开发者ID:RedisLabs,项目名称:redis-quartz,代码行数:12,代码来源:RedisJobStore.java

示例3: isPersistJobDataAfterExecution

import org.quartz.utils.ClassUtils; //导入依赖的package包/类
@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;
}
 
开发者ID:RedisLabs,项目名称:redis-quartz,代码行数:12,代码来源:RedisJobStore.java

示例4: isPersistJobDataAfterExecution

import org.quartz.utils.ClassUtils; //导入依赖的package包/类
/**
 * @return whether the associated Job class carries the {@link PersistJobDataAfterExecution} annotation.
 */
public boolean isPersistJobDataAfterExecution() {

    return ClassUtils.isAnnotationPresent(jobClass, PersistJobDataAfterExecution.class);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:JobDetailImpl.java

示例5: isConcurrentExectionDisallowed

import org.quartz.utils.ClassUtils; //导入依赖的package包/类
/**
 * @return whether the associated Job class carries the {@link DisallowConcurrentExecution} annotation.
 */
public boolean isConcurrentExectionDisallowed() {
    
    return ClassUtils.isAnnotationPresent(jobClass, DisallowConcurrentExecution.class);
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:8,代码来源:JobDetailImpl.java

示例6: isPersistJobDataAfterExecution

import org.quartz.utils.ClassUtils; //导入依赖的package包/类
protected boolean isPersistJobDataAfterExecution(Class<? extends Job> jobClass){
    return ClassUtils.isAnnotationPresent(jobClass, PersistJobDataAfterExecution.class);
}
 
开发者ID:jlinn,项目名称:quartz-redis-jobstore,代码行数:4,代码来源:AbstractRedisStorage.java

示例7: isJobConcurrentExecutionDisallowed

import org.quartz.utils.ClassUtils; //导入依赖的package包/类
/**
 * Determine if the given job class disallows concurrent execution
 * @param jobClass the job class in question
 * @return true if concurrent execution is NOT allowed; false if concurrent execution IS allowed
 */
protected boolean isJobConcurrentExecutionDisallowed(Class<? extends Job> jobClass){
    return ClassUtils.isAnnotationPresent(jobClass, DisallowConcurrentExecution.class);
}
 
开发者ID:jlinn,项目名称:quartz-redis-jobstore,代码行数:9,代码来源:AbstractRedisStorage.java


注:本文中的org.quartz.utils.ClassUtils类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。