|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.util.AbstractTriggerBean
public abstract class AbstractTriggerBean
A utility bean to wrap sceduling a job with a scheduler.
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
logger
|
Constructor Summary | |
---|---|
AbstractTriggerBean()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Set the scheduler |
void |
destroy()
Ensures that the job is unscheduled with the context is shut down. |
java.lang.String |
getBeanName()
Get the bean/trigger name. |
org.quartz.JobDetail |
getJobDetail()
Get the definition of the job to run. |
org.quartz.Scheduler |
getScheduler()
Get the scheduler with which the job and trigger are scheduled. |
abstract org.quartz.Trigger |
getTrigger()
Abstract method for implementations to build their trigger. |
boolean |
isEnabled()
|
void |
setBeanName(java.lang.String name)
Get the bean name as this trigger is created |
void |
setEnabled(boolean enabled)
|
void |
setJobDetail(org.quartz.JobDetail jobDetail)
Set the definition of the job to run. |
void |
setScheduler(org.quartz.Scheduler scheduler)
Set the scheduler. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log logger
Constructor Detail |
---|
public AbstractTriggerBean()
Method Detail |
---|
public org.quartz.JobDetail getJobDetail()
getJobDetail
in interface org.springframework.scheduling.quartz.JobDetailAwareTrigger
public void setJobDetail(org.quartz.JobDetail jobDetail)
jobDetail
- public org.quartz.Scheduler getScheduler()
public void setScheduler(org.quartz.Scheduler scheduler)
scheduler
- public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public void destroy() throws java.lang.Exception
destroy
in interface org.springframework.beans.factory.DisposableBean
java.lang.Exception
public abstract org.quartz.Trigger getTrigger() throws java.lang.Exception
java.lang.Exception
public void setBeanName(java.lang.String name)
setBeanName
in interface org.springframework.beans.factory.BeanNameAware
public java.lang.String getBeanName()
public boolean isEnabled()
public void setEnabled(boolean enabled)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |