All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openbp.config.scheduler.QuartzProcessSchedulerConfig Maven / Gradle / Ivy

There is a newer version: 0.9.11
Show newest version
package org.openbp.config.scheduler;

import org.openbp.server.scheduler.ProcessScheduler;
import org.openbp.server.scheduler.QuartzProcessScheduler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Spring configuration providing the as Quartz scheduler component.
 */
@Configuration
public class QuartzProcessSchedulerConfig
{
	/** Classpath name of the scheduler's properties resource or null */
	private String propertiesResourceName = "OpenBP-Quartz.properties";

	@Bean
	public ProcessScheduler processScheduler()
	{
		QuartzProcessScheduler scheduler = new QuartzProcessScheduler();
		scheduler.setPropertiesResourceName(propertiesResourceName);
		return scheduler;
	}

	/**
	 * Sets the classpath name of the scheduler's properties resource.
	 * @param propertiesResourceName Resource name or null (default: "OpenBP-Quartz.properties")
	 */
	public void setPropertiesResourceName(String propertiesResourceName)
	{
		this.propertiesResourceName = propertiesResourceName;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy