jpel.resolver
Class PolicyActivateOnChange

java.lang.Object
  |
  +--jpel.resolver.PolicyImpl
        |
        +--jpel.resolver.PolicyActivateOnChange
All Implemented Interfaces:
Policy, java.lang.Runnable

public class PolicyActivateOnChange
extends PolicyImpl
implements java.lang.Runnable

Politica que verifica periodicamente se as fontes de dados que geraram determinada parametrização foram modificadas, chamando os listeners sempre que isto acontece.


Constructor Summary
PolicyActivateOnChange()
           
 
Method Summary
 void addConfiguration(jpel.resolver.Configuration conf)
           
 void checkAll()
           
 long getPeriod()
           
 void removeConfiguration(jpel.resolver.Configuration conf)
           
 void run()
           
 void setPeriod(long period)
           
 void start()
           
 
Methods inherited from class jpel.resolver.PolicyImpl
addPolicyListener, firePolicyActivated, removePolicyListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyActivateOnChange

public PolicyActivateOnChange()
                       throws PolicyException
Method Detail

getPeriod

public long getPeriod()

setPeriod

public void setPeriod(long period)

addConfiguration

public void addConfiguration(jpel.resolver.Configuration conf)
                      throws PolicyException
Specified by:
addConfiguration in interface Policy
PolicyException

removeConfiguration

public void removeConfiguration(jpel.resolver.Configuration conf)
                         throws PolicyException
Specified by:
removeConfiguration in interface Policy
PolicyException

start

public void start()
Specified by:
start in interface Policy

run

public void run()
Specified by:
run in interface java.lang.Runnable

checkAll

public void checkAll()
              throws PolicyException
PolicyException