public abstract class AbstractTriggerBean
extends java.lang.Object
implements org.springframework.beans.factory.InitializingBean, org.springframework.scheduling.quartz.JobDetailAwareTrigger, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger |
| Constructor and Description |
|---|
AbstractTriggerBean() |
| Modifier and Type | Method and Description |
|---|---|
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 |
setEnabledFromBean(BooleanBean enabled) |
void |
setJobDetail(org.quartz.JobDetail jobDetail)
Set the definition of the job to run.
|
void |
setScheduler(org.quartz.Scheduler scheduler)
Set the scheduler.
|
public org.quartz.JobDetail getJobDetail()
getJobDetail in interface org.springframework.scheduling.quartz.JobDetailAwareTriggerpublic 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.InitializingBeanjava.lang.Exceptionpublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionpublic abstract org.quartz.Trigger getTrigger()
throws java.lang.Exception
java.lang.Exceptionpublic void setBeanName(java.lang.String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic java.lang.String getBeanName()
public boolean isEnabled()
public void setEnabled(boolean enabled)
public void setEnabledFromBean(BooleanBean enabled)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.