01: /* JFox, the OpenSource J2EE Application Server
02: *
03: * Copyright (C) 2002 huihoo.org
04: * Distributable under GNU LGPL license
05: * See the GNU Lesser General Public License for more details.
06: */
07:
08: package javax.management;
09:
10: import java.io.Serializable;
11:
12: /**
13: * Represents values that can be passed as arguments to
14: * relational expressions. Strings, numbers, attributes are valid values
15: * and should be represented by implementations of <CODE>ValueExp</CODE>.
16: *
17: * @author <a href="mailto:young_yy@hotmail.org">Young Yang</a>
18: */
19:
20: public interface ValueExp extends Serializable {
21:
22: /**
23: * Applies the ValueExp on a MBean.
24: *
25: * @param name The name of the MBean on which the ValueExp will be applied.
26: *
27: * @return The <CODE>ValueExp</CODE>.
28: *
29: * @exception BadStringOperationException
30: * @exception BadBinaryOpValueExpException
31: * @exception BadAttributeValueExpException
32: * @exception InvalidApplicationException
33: */
34: public ValueExp apply(ObjectName name)
35: throws BadStringOperationException,
36: BadBinaryOpValueExpException,
37: BadAttributeValueExpException, InvalidApplicationException;
38:
39: /**
40: * Sets the MBean server on which the query is to be performed.
41: *
42: * @param server The MBean server on which the query is to be performed.
43: */
44: public void setMBeanServer(MBeanServer server);
45:
46: }
|