1 /*
2 * JBoss, the OpenSource J2EE webOS
3 *
4 * Distributable under LGPL license.
5 * See terms of license at gnu.org.
6 */
7 package javax.management;
8
9 import java.io.Serializable;
10
11 /**
12 * An implementation of Value expression. Apply always returns this.
13 *
14 * <p><b>Revisions:</b>
15 * <p><b>20020317 Adrian Brock:</b>
16 * <ul>
17 * <li>Make queries thread safe
18 * </ul>
19 *
20 * @author <a href="mailto:Adrian.Brock@HappeningTimes.com">Adrian Brock</a>.
21 * @version $Revision: 1.2.6.1 $
22 */
23 /*package*/ class ValueExpSupport
24 implements ValueExp
25 {
26 // Constants ---------------------------------------------------
27
28 private static final long serialVersionUID = 5668002406025575052L;
29
30 // Attributes --------------------------------------------------
31
32 // Static ------------------------------------------------------
33
34 // Constructor -------------------------------------------------
35
36 // Public ------------------------------------------------------
37
38 // ValueExp implementation -------------------------------------
39
40 public ValueExp apply(ObjectName name)
41 throws BadStringOperationException,
42 BadBinaryOpValueExpException,
43 BadAttributeValueExpException,
44 InvalidApplicationException
45 {
46 return this;
47 }
48
49 public void setMBeanServer(MBeanServer server)
50 {
51 QueryEval.server.set(server);
52 }
53
54 // Object overrides --------------------------------------------
55
56 // Protected ---------------------------------------------------
57
58 // Package -----------------------------------------------------
59
60 /**
61 * Get the MBean server
62 */
63 /*package*/ MBeanServer getMBeanServer()
64 {
65 return (MBeanServer) QueryEval.server.get();
66 }
67
68 // Private -----------------------------------------------------
69
70 // Inner classes -----------------------------------------------
71 }