com.scooterframework.orm.activerecord
Class ReferenceDataLoader

java.lang.Object
  extended by com.scooterframework.orm.activerecord.ReferenceDataLoader
All Implemented Interfaces:
java.util.Observer

public class ReferenceDataLoader
extends java.lang.Object
implements java.util.Observer

ReferenceDataLoader is responsible for loading reference data.


Constructor Summary
ReferenceDataLoader()
           
 
Method Summary
 void cancel()
          Terminates this loader, discarding any currently scheduled tasks.
static java.util.Map<java.lang.String,com.scooterframework.orm.activerecord.ReferenceDataLoader.ReferenceDataTimerTask> getReferenceDataTasks()
           
static boolean isStarted()
           
 void start()
           
 void stop()
          Terminates this loader, discarding any currently scheduled tasks.
 void update(java.util.Observable o, java.lang.Object arg)
          Updates this loader, restarts the timer task if its period is changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReferenceDataLoader

public ReferenceDataLoader()
Method Detail

start

public void start()

cancel

public void cancel()
Terminates this loader, discarding any currently scheduled tasks.

See Also:
Timer.cancel()

stop

public void stop()
Terminates this loader, discarding any currently scheduled tasks.

See Also:
Timer.cancel()

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Updates this loader, restarts the timer task if its period is changed.

Specified by:
update in interface java.util.Observer

isStarted

public static boolean isStarted()

getReferenceDataTasks

public static java.util.Map<java.lang.String,com.scooterframework.orm.activerecord.ReferenceDataLoader.ReferenceDataTimerTask> getReferenceDataTasks()