Package com.logicaldoc.core.task
Class TaskTrigger
java.lang.Object
com.logicaldoc.core.task.TaskTrigger
- All Implemented Interfaces:
org.springframework.beans.factory.Aware
,org.springframework.beans.factory.BeanNameAware
,org.springframework.beans.factory.FactoryBean<org.quartz.Trigger>
,org.springframework.beans.factory.InitializingBean
public class TaskTrigger
extends Object
implements org.springframework.beans.factory.FactoryBean<org.quartz.Trigger>, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean
This trigger wraps both a SimpleTrigger and a CronTrigger
- Since:
- 4.5
- Author:
- Marco Meschieri - LogicalDOC
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
org.springframework.scheduling.quartz.CronTriggerFactoryBean
org.quartz.JobDetail
getName()
org.quartz.Trigger
Class<?>
long
org.springframework.scheduling.quartz.SimpleTriggerFactoryBean
getTask()
boolean
void
reload()
void
setBeanName
(String beanName) void
setConfig
(ContextProperties config) void
setJobDetail
(org.quartz.JobDetail jobDetail) void
-
Field Details
-
MODE_CRON
- See Also:
-
MODE_SIMPLE
- See Also:
-
-
Method Details
-
getTask
-
getName
-
setTask
-
getSimpleTrigger
public org.springframework.scheduling.quartz.SimpleTriggerFactoryBean getSimpleTrigger() -
getCronTrigger
public org.springframework.scheduling.quartz.CronTriggerFactoryBean getCronTrigger() -
setJobDetail
public void setJobDetail(org.quartz.JobDetail jobDetail) -
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
setBeanName
- Specified by:
setBeanName
in interfaceorg.springframework.beans.factory.BeanNameAware
-
getObject
public org.quartz.Trigger getObject()- Specified by:
getObject
in interfaceorg.springframework.beans.factory.FactoryBean<org.quartz.Trigger>
-
getObjectType
- Specified by:
getObjectType
in interfaceorg.springframework.beans.factory.FactoryBean<org.quartz.Trigger>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingleton
in interfaceorg.springframework.beans.factory.FactoryBean<org.quartz.Trigger>
-
reload
public void reload() -
setConfig
-
getRepeatInterval
public long getRepeatInterval() -
getJobDetail
public org.quartz.JobDetail getJobDetail()
-