net.dpml.state
Interface Trigger

All Known Implementing Classes:
DefaultTrigger

public interface Trigger

Interface describing a condition within which an action may be invoked.

Version:
1.0.0
Author:
Digital Product Meta Library

Nested Class Summary
static class Trigger.TriggerEvent
          Trigger policy enumeration.
 
Field Summary
static Trigger.TriggerEvent INITIALIZATION
          Initialization event emumeration.
static Trigger.TriggerEvent TERMINATION
          Termination event emumeration.
 
Method Summary
 Action getAction()
          Return the actions that this trigger initiates.
 Trigger.TriggerEvent getEvent()
          Return the event enumneration that this trigger is associated with.
 

Field Detail

INITIALIZATION

public static final Trigger.TriggerEvent INITIALIZATION
Initialization event emumeration.


TERMINATION

public static final Trigger.TriggerEvent TERMINATION
Termination event emumeration.

Method Detail

getEvent

public Trigger.TriggerEvent getEvent()
Return the event enumneration that this trigger is associated with.

Returns:
the triggering event class

getAction

public Action getAction()
Return the actions that this trigger initiates.

Returns:
the triggered action