org.n52.security.common.util
Class TimerTaskScheduler

java.lang.Object
  extended by org.n52.security.common.util.TimerTaskScheduler

public class TimerTaskScheduler
extends Object

This class allows a single spring configured Timer in an application, at which some timer definitions can be registered.


Constructor Summary
TimerTaskScheduler()
           
 
Method Summary
 List<TimerTaskDefinition> getTaskDefinitions()
           
 Timer getTimer()
           
 String getTimerName()
           
 void scheduleTaskDefinition(TimerTaskDefinition def)
          registers a new task definition with this scheduler.
 void setTaskDefinitions(List<TimerTaskDefinition> taskDefinitions)
           
 void setTimer(Timer timer)
           
 void setTimerName(String timerName)
           
 void shutdown()
          Life Time Method, normally called within an Dependency Injection Container.
 void start()
          Life Time Method, normally called within an Dependency Injection Container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimerTaskScheduler

public TimerTaskScheduler()
Method Detail

start

public void start()
Life Time Method, normally called within an Dependency Injection Container. It goes through all tasks definitions and add them to the timer.


shutdown

public void shutdown()
Life Time Method, normally called within an Dependency Injection Container. It cancels the timer.


scheduleTaskDefinition

public void scheduleTaskDefinition(TimerTaskDefinition def)
registers a new task definition with this scheduler.


getTimer

public Timer getTimer()

setTimer

public void setTimer(Timer timer)

getTimerName

public String getTimerName()

setTimerName

public void setTimerName(String timerName)

getTaskDefinitions

public List<TimerTaskDefinition> getTaskDefinitions()

setTaskDefinitions

public void setTaskDefinitions(List<TimerTaskDefinition> taskDefinitions)


Copyright © 2004–2013 52north.org. All rights reserved.