javax.management
Interface ValueExp

All Superinterfaces:
Serializable
All Known Implementing Classes:
AttributeValueExp, StringValueExp

public interface ValueExp
extends Serializable

Represents values that may be passed as arguments to QueryExps. Strings, numbers and bean attributes are all valid argument types for query expressions, and so should be represented as implementations of this interface.

Since:
1.5

Method Summary
 ValueExp apply(ObjectName name)
          Applies the value expression to the specified management bean.
 void setMBeanServer(MBeanServer server)
          Deprecated. This method is superfluous, as the ValueExp can access the server using QueryEval.getMBeanServer().
 

Method Detail

apply

ValueExp apply(ObjectName name)
               throws BadStringOperationException,
                      BadBinaryOpValueExpException,
                      BadAttributeValueExpException,
                      InvalidApplicationException
Applies the value expression to the specified management bean.

Parameters:
name - the name of the management bean.
Returns:
the value expression.
Throws:
BadStringOperationException - if an invalid string operation is used by the value expression.
BadBinaryOpValueExpException - if an invalid expression is used by the value expression.
BadAttributeValueExpException - if an invalid attribute is used by the value expression.
InvalidApplicationException - if the value expression is applied to the wrong type of bean.

setMBeanServer

void setMBeanServer(MBeanServer server)
Deprecated. This method is superfluous, as the ValueExp can access the server using QueryEval.getMBeanServer().

Changes the MBeanServer on which this query is performed.

Parameters:
server - the new server to use.