org.jbpm.wire.operation
Class PropertyOperation

java.lang.Object
  extended by org.jbpm.wire.operation.AbstractOperation
      extended by org.jbpm.wire.operation.PropertyOperation
All Implemented Interfaces:
java.io.Serializable, Operation

public class PropertyOperation
extends AbstractOperation

injects another object with a setter method.

Author:
Tom Baeyens, Guillaume Porcher (documentation)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jbpm.wire.operation.AbstractOperation
dbid, dbversion
 
Constructor Summary
PropertyOperation()
           
 
Method Summary
 void apply(java.lang.Object target, WireContext wireContext)
          Apply this operation to the specified object, defined in the specified WireContext.
 Descriptor getDescriptor()
          Gets the descriptor used to create the field's value.
 java.lang.String getSetterName()
          Gets the name of the setter method used to inject the property value.
 void setDescriptor(Descriptor valueDescriptor)
          Sets the descriptor used to create the field's value
 void setPropertyName(java.lang.String propertyName)
          Sets the name of the property that should be updated by this operation.
 void setSetterName(java.lang.String setterName)
          Sets the name of the setter method to use to inject the property value.
 
Methods inherited from class org.jbpm.wire.operation.AbstractOperation
getDbid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyOperation

public PropertyOperation()
Method Detail

apply

public void apply(java.lang.Object target,
                  WireContext wireContext)
Description copied from interface: Operation
Apply this operation to the specified object, defined in the specified WireContext.

Parameters:
target - object on which the operation should be performed.
wireContext - context in which the operation is applied.

setPropertyName

public void setPropertyName(java.lang.String propertyName)
Sets the name of the property that should be updated by this operation. If propertyName is foo, the method used to set the value will be setFoo.

Parameters:
propertyName -

getSetterName

public java.lang.String getSetterName()
Gets the name of the setter method used to inject the property value.

Returns:
name of the setter method used to inject the property value.

setSetterName

public void setSetterName(java.lang.String setterName)
Sets the name of the setter method to use to inject the property value.

Parameters:
setterName -

getDescriptor

public Descriptor getDescriptor()
Gets the descriptor used to create the field's value.


setDescriptor

public void setDescriptor(Descriptor valueDescriptor)
Sets the descriptor used to create the field's value

Parameters:
valueDescriptor -