javax.management

Interface ValueExp

public interface ValueExp extends Serializable

Represents values that may be passed as arguments to {@link QueryExp}s. 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
ValueExpapply(ObjectName name)
Applies the value expression to the specified management bean.
voidsetMBeanServer(MBeanServer server)
Changes the {@link MBeanServer} on which this query is performed.

Method Detail

apply

public ValueExp apply(ObjectName name)
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

public void setMBeanServer(MBeanServer server)

Deprecated: This method is superfluous, as the {@link ValueExp} can access the server using {@link QueryEval#getMBeanServer()}.

Changes the {@link MBeanServer} on which this query is performed.

Parameters: server the new server to use.