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


Java SpringBeanJobFactory类代码示例

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


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

示例1: springBeanJobFactory

import org.springframework.scheduling.quartz.SpringBeanJobFactory; //导入依赖的package包/类
@Bean
public SpringBeanJobFactory springBeanJobFactory(ApplicationContext applicationContext)
{
	AutowiringSpringBeanJobFactory jobFactory = new AutowiringSpringBeanJobFactory();
	jobFactory.setApplicationContext(applicationContext);
	return jobFactory;
}
 
开发者ID:yonadev,项目名称:yona-server,代码行数:8,代码来源:QuartzConfig.java

示例2: scheduler

import org.springframework.scheduling.quartz.SpringBeanJobFactory; //导入依赖的package包/类
@Bean
public Scheduler scheduler() throws Exception {
	SchedulerFactoryBean factory = new SchedulerFactoryBean();
	factory.setTriggers(new Trigger[] { jobDetailTrigger() });
	factory.setJobFactory(new SpringBeanJobFactory());
	factory.setDataSource(dataSource());
	factory.setSchedulerContextAsMap(new HashMap<String, Object>() {{
		put("job", job());
		put("jobLauncher", jobLauncher);
	}});
	factory.afterPropertiesSet();

	return factory.getObject();
}
 
开发者ID:debop,项目名称:spring-batch-experiments,代码行数:15,代码来源:QuartzSchedulingConfiguration.java

示例3: springBeanJobFactory

import org.springframework.scheduling.quartz.SpringBeanJobFactory; //导入依赖的package包/类
@Bean
public SpringBeanJobFactory springBeanJobFactory() {
    AutowiringSpringBeanJobFactory jobFactory = new AutowiringSpringBeanJobFactory();
    jobFactory.setApplicationContext(applicationContext);
    return jobFactory;
}
 
开发者ID:farchanjo,项目名称:webcron,代码行数:7,代码来源:QuartzConfig.java

示例4: jobFactory

import org.springframework.scheduling.quartz.SpringBeanJobFactory; //导入依赖的package包/类
@Bean
public JobFactory jobFactory() {
    return new SpringBeanJobFactory();
}
 
开发者ID:mow811236,项目名称:sample-schedule-job-admin,代码行数:5,代码来源:Quartz.java


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