All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface com.sun.jaw.reference.agent.services.OperatorSrvIf

public interface OperatorSrvIf
extends Serializable
This interface defines an operator that can be applied when setting a property. When setting a property, a client can specify the name of a specific operator. An operator is a Java class which will be instantiated by the framework. Then, once the operator is instantiated, the framework invokes the perform method.

In order to be instantiable by the framework, an operator must contain a public constructor with no arguments.


Method Index

 o perform(Framework, ObjectName, Object, String, Object, int)
Performs an operation on a property.

Methods

 o perform
 public abstract Object perform(Framework cmf,
                                ObjectName name,
                                Object target,
                                String prop,
                                Object val,
                                int pos) throws PropertyNotFoundException, InvalidPropertyValueException
Performs an operation on a property.

Parameters:
cmf - Reference to the framework.
name - Name of the object on which the operator is applied.
target - Target object.
prop - Target property.
value - Value to be used by the operator.
pos - Position for an idnexed property, -1 otherwise.
Throws: PropertyNotFoundException
The specified property does not exist or cannot be retrieved.
Throws: InvalidPropertyValueException
The specified value does not correspond to a valid value for the property.

All Packages  Class Hierarchy  This Package  Previous  Next  Index