com.oakgrovesystems.reactor.policy
Class HelloWorldPolicy

java.lang.Object
  |
  +--com.oakgrovesystems.reactor.policy.HelloWorldPolicy
All Implemented Interfaces:
PolicyScript, java.lang.Runnable

public class HelloWorldPolicy
extends java.lang.Object
implements PolicyScript

This class is intended to be used as a Reactor Policy, such that when the Policy is executed, message is printed to System.out.


Constructor Summary
HelloWorldPolicy()
           
 
Method Summary
 void run()
           
 void setNavigator(com.oakgrovesystems.util.Navigator navigator)
          Called when a Policy is executed to provide access to a Navigator for use within the script.
 void setPolicy(com.oakgrovesystems.reactor.processMediation.Policy thisPolicy)
          Called when a Policy is executed to provide access to the Reactor Policy object with which this script is associated.
 void setTriggeringEvent(com.oakgrovesystems.reactor.ReactorEvent triggeringEvent)
          Called when a Policy is executed to provide access to the event that triggered the execution.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HelloWorldPolicy

public HelloWorldPolicy()
Method Detail

setTriggeringEvent

public void setTriggeringEvent(com.oakgrovesystems.reactor.ReactorEvent triggeringEvent)
Description copied from interface: PolicyScript
Called when a Policy is executed to provide access to the event that triggered the execution. If execution was not triggered by an event, this method is called with a null parameter.

Specified by:
setTriggeringEvent in interface PolicyScript

setPolicy

public void setPolicy(com.oakgrovesystems.reactor.processMediation.Policy thisPolicy)
Description copied from interface: PolicyScript
Called when a Policy is executed to provide access to the Reactor Policy object with which this script is associated.

Specified by:
setPolicy in interface PolicyScript

setNavigator

public void setNavigator(com.oakgrovesystems.util.Navigator navigator)
Description copied from interface: PolicyScript
Called when a Policy is executed to provide access to a Navigator for use within the script.

Specified by:
setNavigator in interface PolicyScript

run

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


Copyright (c) 1999-2004 Oak Grove Systems. All Rights Reserved.