|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jbpm.wire.operation.SubscribeOperation
public class SubscribeOperation
subscribes to an observable
.
The target object can be a Listener
or a specific method to call can be specified (by setMethodName(String)
)
The event can be filtered by specifying a Context
(with setContextName(String)
),
objects to observe (with setObjectNames(List)
) and events to observe
(with setEventNames(List)
). If the objects or events are not specified,
then all objects and events are observed.
The setWireEvents(boolean)
specifies if the object or the Descriptor
events
should be observed.
Constructor Summary | |
---|---|
SubscribeOperation()
|
Method Summary | |
---|---|
void |
apply(java.lang.Object target,
WireContext targetWireContext)
Apply this operation to the specified object, defined in the specified WireContext . |
java.util.List<ArgDescriptor> |
getArgDescriptors()
Gets the list of argDescriptor used to create the arguments given to the method (only if a specific method has to be called). |
java.lang.String |
getContextName()
Gets the name of the WireContext where the Observable should be found. |
java.util.List<java.lang.String> |
getEventNames()
Gets the list of events to listen to. |
java.lang.String |
getMethodName()
Gets the name of the method to invoke when an event is received. |
java.util.List<java.lang.String> |
getObjectNames()
Gets the list of name of the Observable objects to observe. |
boolean |
isWireEvents()
true if the target object will listen to Descriptor related events. |
void |
setArgDescriptors(java.util.List<ArgDescriptor> argDescriptors)
Sets the list of argDescriptor used to create the arguments given to the method. |
void |
setContextName(java.lang.String contextName)
Sets the name of the WireContext where the Observable should be found. |
void |
setEventNames(java.util.List<java.lang.String> eventNames)
Sets the list of events to listen to. |
void |
setMethodName(java.lang.String methodName)
Sets the name of the method to invoke when an event is received. |
void |
setObjectNames(java.util.List<java.lang.String> objectNames)
Sets the list of name of the Observable objects to observe. |
void |
setWireEvents(boolean wireEvents)
Sets if the object should listen to descriptor events or to events fired by the named object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SubscribeOperation()
Method Detail |
---|
public void apply(java.lang.Object target, WireContext targetWireContext)
Operation
WireContext
.
apply
in interface Operation
target
- object on which the operation should be performed.targetWireContext
- context in which the operation is applied.public java.util.List<ArgDescriptor> getArgDescriptors()
public void setArgDescriptors(java.util.List<ArgDescriptor> argDescriptors)
public java.util.List<java.lang.String> getEventNames()
public void setEventNames(java.util.List<java.lang.String> eventNames)
public java.lang.String getMethodName()
public void setMethodName(java.lang.String methodName)
public java.lang.String getContextName()
public void setContextName(java.lang.String contextName)
public java.util.List<java.lang.String> getObjectNames()
public void setObjectNames(java.util.List<java.lang.String> objectNames)
public boolean isWireEvents()
true
if the target object will listen to Descriptor related events.
false
if the target object will listen to the object instance events.
public void setWireEvents(boolean wireEvents)
true
if the target object will listen to Descriptor related events.
false
if the target object will listen to the object instance events.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |