|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TriggerConditionListenersRegistry
This interface defines methods to register and deregister listeners of trigger conditions. Those listeners are part of the agent infrastructure. They will be monitoring agent actions in order to detect the occurrence of the trigger condition for an obligation policy. The interface defines also a method to query for the trigger conditions a calling listener is interested in.
Method Summary | |
---|---|
void |
deregisterTriggerConditionListener(TriggerConditionListener listenerRef)
Deregister the specified TriggerConditionListener from the registry. |
java.util.Vector |
getTriggerConditions(BasicActionDescription triggerAD)
Find all trigger conditions that match the specified BasicActionDescription and return them to the caller. |
void |
registerTriggerConditionListener(BasicActionDescription triggerAD,
TriggerConditionListener listenerRef)
Store the received TriggerConditionListener in the registry of listeners. |
Method Detail |
---|
void registerTriggerConditionListener(BasicActionDescription triggerAD, TriggerConditionListener listenerRef) throws TriggerConditionListenerRegistrationException
triggerAD
- BasicActionDescription describes the trigger condition the listener is going to monitor.listenerRef
- TriggerConditionListener, an instance of a listener, which will be monitoring the described
trigger condition when an obligation policy, which contains the trigger BasicActionDescription,
is received by the Guard and passed to the listener.
TriggerConditionListenerRegistrationException
- if the listener registration fails.void deregisterTriggerConditionListener(TriggerConditionListener listenerRef) throws TriggerConditionListenerDeregistrationException
listenerRef
- TriggerConditionListener, an instance of a listener to be deregistered from the listeners registry.
TriggerConditionListenerDeregistrationException
- if the listener deregistration fails.java.util.Vector getTriggerConditions(BasicActionDescription triggerAD)
triggerAD
- BasicActionDescription - describes the action to be used in matching against all BasicActionDescriptions
of trigger conditions stored in obligation policies.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |