org.alfresco.util
Class CronTriggerBean

java.lang.Object
  extended by org.alfresco.util.AbstractTriggerBean
      extended by org.alfresco.util.CronTriggerBean
All Implemented Interfaces:
org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, org.springframework.scheduling.quartz.JobDetailAwareTrigger

public class CronTriggerBean
extends AbstractTriggerBean

A utility bean to wrap scheduling a cron job with a given scheduler.


Field Summary
 
Fields inherited from class org.alfresco.util.AbstractTriggerBean
logger
 
Constructor Summary
CronTriggerBean()
          Default constructor
 
Method Summary
 void afterPropertiesSet()
          Set the scheduler
 java.lang.String getCronExpression()
          Get the cron expression that determines when this job is run.
 org.quartz.Trigger getTrigger()
          Build the cron trigger
 void setCronExpression(java.lang.String cronExpression)
          Set the cron expression that determines when this job is run.
 
Methods inherited from class org.alfresco.util.AbstractTriggerBean
destroy, getBeanName, getJobDetail, getScheduler, isEnabled, setBeanName, setEnabled, setJobDetail, setScheduler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CronTriggerBean

public CronTriggerBean()
Default constructor

Method Detail

getCronExpression

public java.lang.String getCronExpression()
Get the cron expression that determines when this job is run.

Returns:
The cron expression

setCronExpression

public void setCronExpression(java.lang.String cronExpression)
Set the cron expression that determines when this job is run.

Parameters:
cronExpression -

getTrigger

public org.quartz.Trigger getTrigger()
                              throws java.lang.Exception
Build the cron trigger

Specified by:
getTrigger in class AbstractTriggerBean
Returns:
The trigger
Throws:
java.lang.Exception

afterPropertiesSet

public void afterPropertiesSet()
                        throws java.lang.Exception
Description copied from class: AbstractTriggerBean
Set the scheduler

Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Overrides:
afterPropertiesSet in class AbstractTriggerBean
Throws:
java.lang.Exception


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.