open class SimpleTriggerFactoryBean : FactoryBean<SimpleTrigger>, BeanNameAware, InitializingBean
A Spring FactoryBean for creating a Quartz org.quartz.SimpleTrigger instance, supporting bean-style usage for trigger configuration.
SimpleTrigger(Impl)
itself is already a JavaBean but lacks sensible defaults. This class uses the Spring bean name as job name, the Quartz default group ("DEFAULT") as job group, the current time as start time, and indefinite repetition, if not specified.
This class will also register the trigger with the job name and group of a given org.quartz.JobDetail. This allows SchedulerFactoryBean to automatically register a trigger for the corresponding JobDetail, instead of registering the JobDetail separately.
Author
Juergen Hoeller
Since
3.1
See Also
#setName#setGroup#setStartDelay#setJobDetailSchedulerFactoryBean#setTriggersSchedulerFactoryBean#setJobDetails
SimpleTriggerFactoryBean()
A Spring FactoryBean for creating a Quartz org.quartz.SimpleTrigger instance, supporting bean-style usage for trigger configuration.
This class will also register the trigger with the job name and group of a given org.quartz.JobDetail. This allows SchedulerFactoryBean to automatically register a trigger for the corresponding JobDetail, instead of registering the JobDetail separately. |
open fun afterPropertiesSet(): Unit |
|
open fun getJobDataMap(): JobDataMap
Return the trigger's JobDataMap. |
|
open fun getObject(): SimpleTrigger |
|
open fun getObjectType(): Class<*> |
|
open fun isSingleton(): Boolean |
|
open fun setBeanName(beanName: String): Unit |
|
open fun setDescription(description: String): Unit
Associate a textual description with this trigger. |
|
open fun setGroup(group: String): Unit
Specify the trigger's group. |
|
open fun setJobDataAsMap(jobDataAsMap: MutableMap<String, *>): Unit
Register objects in the JobDataMap via a given Map. These objects will be available to this Trigger only, in contrast to objects in the JobDetail's data map. |
|
open fun setJobDataMap(jobDataMap: JobDataMap): Unit
Set the trigger's JobDataMap. |
|
open fun setJobDetail(jobDetail: JobDetail): Unit
Set the JobDetail that this trigger should be associated with. |
|
open fun setMisfireInstruction(misfireInstruction: Int): Unit
Specify a misfire instruction for this trigger. |
|
open fun setMisfireInstructionName(constantName: String): Unit
Set the misfire instruction via the name of the corresponding constant in the org.quartz.SimpleTrigger class. Default is |
|
open fun setName(name: String): Unit
Specify the trigger's name. |
|
open fun setPriority(priority: Int): Unit
Specify the priority of this trigger. |
|
open fun setRepeatCount(repeatCount: Int): Unit
Specify the number of times this trigger is supposed to fire. Default is to repeat indefinitely. |
|
open fun setRepeatInterval(repeatInterval: Long): Unit
Specify the interval between execution times of this trigger. |
|
open fun setStartDelay(startDelay: Long): Unit
Set the start delay in milliseconds. The start delay is added to the current system time (when the bean starts) to control the start time of the trigger. |
|
open fun setStartTime(startTime: Date): Unit
Set a specific start time for the trigger. Note that a dynamically computed |