Package org.quartz

Examples of org.quartz.ListenerManager


  /**
   * Register all specified listeners with the Scheduler.
   */
  protected void registerListeners() throws SchedulerException {
    ListenerManager listenerManager = getScheduler().getListenerManager();
    if (this.schedulerListeners != null) {
      for (SchedulerListener listener : this.schedulerListeners) {
        listenerManager.addSchedulerListener(listener);
      }
    }
    if (this.globalJobListeners != null) {
      for (JobListener listener : this.globalJobListeners) {
        listenerManager.addJobListener(listener);
      }
    }
    if (this.globalTriggerListeners != null) {
      for (TriggerListener listener : this.globalTriggerListeners) {
        listenerManager.addTriggerListener(listener);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.quartz.ListenerManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.