|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.ponder2.EventTemplate
public class EventTemplate
Managed object to act as a template for notifications (events). Each instance of the template contains a set of named arguments. These argument names can be retrieved for checking against Policies that expect to be activated by the events. When an event is created using this template the named arguments are packed into a map and sent around the system inside the event.
Field Summary | |
---|---|
protected ArgumentList |
argList
|
static java.lang.String |
defaultDomain
|
Constructor Summary | |
---|---|
protected |
EventTemplate(P2Object myP2Object)
creates an empty template. |
protected |
EventTemplate(P2Object myP2Object,
P2Array anArray)
creates an event template with anArray containing the argument names. |
Method Summary | |
---|---|
protected void |
operation_arg(java.lang.String arg)
adds an argument field to this event definition. |
protected void |
operation_args(P2Object anArray)
adds anArray of argument fields to this event template. |
protected void |
operation_create(P2Object source)
creates and sends an event of this type with no values. |
protected void |
operation_create(P2Object source,
P2Array anArray)
creates and sends an event of this type with values from anArray. |
protected void |
operation_create(P2Object source,
P2Hash aHash)
creates and sends an event of this type with values from aHash. |
P2Hash |
packageArgs(P2Array anArray)
|
P2Hash |
packageArgs(P2Object... args)
INTERNAL OPERATION. |
P2Hash |
packageHash(P2Hash args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected ArgumentList argList
public static java.lang.String defaultDomain
Constructor Detail |
---|
protected EventTemplate(P2Object myP2Object)
myP2Object
- protected EventTemplate(P2Object myP2Object, P2Array anArray) throws Ponder2ArgumentException, Ponder2OperationException
myP2Object
- anArray
-
Ponder2ArgumentException
Ponder2OperationException
Method Detail |
---|
public P2Hash packageArgs(P2Object... args) throws Ponder2ArgumentException
args
- the arguments to be taken as values
Ponder2ArgumentException
public P2Hash packageArgs(P2Array anArray) throws Ponder2ArgumentException
Ponder2ArgumentException
public P2Hash packageHash(P2Hash args) throws Ponder2ArgumentException
Ponder2ArgumentException
protected void operation_arg(java.lang.String arg) throws Ponder2ArgumentException
arg
- the name of the argument to add
Ponder2ArgumentException
protected void operation_args(P2Object anArray) throws Ponder2ArgumentException, Ponder2OperationException
anArray
- the names of the arguments to become attributes of the event
Ponder2ArgumentException
Ponder2OperationException
protected void operation_create(P2Object source) throws Ponder2Exception
source
- the ID of the object initiating the event
Ponder2Exception
protected void operation_create(P2Object source, P2Array anArray) throws Ponder2Exception
source
- the ID of the object initiating the eventanArray
- the values to be filled in as attributes of the event
Ponder2Exception
protected void operation_create(P2Object source, P2Hash aHash) throws Ponder2Exception
source
- the ID of the object initiating the eventaHash
- the named values to be filled in as attributes of the event
Ponder2Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |