org.jboss.seam.cron.spi.scheduling
Class CronSchedulingInstaller

java.lang.Object
  extended by org.jboss.seam.cron.spi.scheduling.CronSchedulingInstaller

@ApplicationScoped
public class CronSchedulingInstaller
extends Object

Scans all scheduling annotations and captures the configuration as a #Set of #TriggerDetails, then forwards those configurations on to the #CronSchedulingProvider implementation so that the underlying service can be configured appropriately. Not directly useful to providers.

Author:
peteroyle

Field Summary
static String SCHEDULE_PROPERTIES_PATH
           
 
Constructor Summary
CronSchedulingInstaller()
           
 
Method Summary
 IntervalTriggerDetail createEventPayloadFromEveryBinding(Every everyBinding)
          Inspects the given @Every qualifier and extracts its settings into a new #ScheduledTriggerDetail.
 void initProviderScheduling(BeanManager manager, CronSchedulingProvider scheduleProvider, Set<ObserverMethod> allObservers)
          Initializes schedulers for all of the observed scheduled events.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCHEDULE_PROPERTIES_PATH

public static final String SCHEDULE_PROPERTIES_PATH
See Also:
Constant Field Values
Constructor Detail

CronSchedulingInstaller

public CronSchedulingInstaller()
Method Detail

initProviderScheduling

public void initProviderScheduling(BeanManager manager,
                                   CronSchedulingProvider scheduleProvider,
                                   Set<ObserverMethod> allObservers)
Initializes schedulers for all of the observed scheduled events.

Parameters:
manager - The JSR-299 Bean Manager.

createEventPayloadFromEveryBinding

public IntervalTriggerDetail createEventPayloadFromEveryBinding(Every everyBinding)
Inspects the given @Every qualifier and extracts its settings into a new #ScheduledTriggerDetail.

Parameters:
everyBinding -
Returns:
a fully populated #ScheduledTriggerDetail.


Copyright © 2011 Seam Framework. All Rights Reserved.