javax.management
public interface ValueExp extends Serializable
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.Modifier and Type | Method and Description |
---|---|
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() . |
ValueExp apply(ObjectName name) throws BadStringOperationException, BadBinaryOpValueExpException, BadAttributeValueExpException, InvalidApplicationException
name
- the name of the management bean.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.void setMBeanServer(MBeanServer server)
ValueExp
can access the server using
QueryEval.getMBeanServer()
.MBeanServer
on which this query is performed.server
- the new server to use.