01: /*
02: * Copyright (C) The MX4J Contributors.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the MX4J License version 1.0.
06: * See the terms of the MX4J License in the documentation provided with this software.
07: */
08:
09: package javax.management;
10:
11: import java.io.Serializable;
12:
13: /**
14: * Represents values that can be passed to relational expressions such as strings, numbers, booleans and MBean attribute values.
15: *
16: * @version $Revision: 1.7 $
17: */
18: public interface ValueExp extends Serializable {
19: /**
20: * Applies this expression on the specified MBean.
21: *
22: * @param name The <code>ObjectName</code> of the <code>MBean</code> on which the expression is applied.
23: * @return The value expression that has been applied to the MBean
24: */
25: public ValueExp apply(ObjectName name)
26: throws BadStringOperationException,
27: BadBinaryOpValueExpException,
28: BadAttributeValueExpException, InvalidApplicationException;
29:
30: /**
31: * Sets the <code>MBeanServer</code> used (possibly) to apply the value expression
32: */
33: public void setMBeanServer(MBeanServer server);
34: }
|