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


public abstract interface OperatorSrvIf
extends java.io.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.


Fields inherited from class java.io.Serializable
serialVersionUID
 
Method Summary
 java.lang.Object perform(Framework cmf, ObjectName name, java.lang.Object target, java.lang.String prop, java.lang.Object val, int pos)
          Performs an operation on a property.
 

Method Detail

perform

public java.lang.Object perform(Framework cmf,
                                ObjectName name,
                                java.lang.Object target,
                                java.lang.String prop,
                                java.lang.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.
InvalidPropertyValueException - The specified value does not correspond to a valid value for the property.