KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > server > interceptor > DefaultMBeanServerInterceptorMBeanDescription


1 /*
2  * Copyright (C) MX4J.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.server.interceptor;
10
11 import mx4j.MBeanDescriptionAdapter;
12
13 /**
14  * Management interface description for the DefaultMBeanServerInterceptor MBean
15  * @author <a HREF="mailto:biorn_steedom@users.sourceforge.net">Simone Bordet</a>
16  * @version $Revision: 1.1 $
17  */

18 public class DefaultMBeanServerInterceptorMBeanDescription extends MBeanDescriptionAdapter
19 {
20    public String JavaDoc getMBeanDescription()
21    {
22       return "MBeanServer interceptor";
23    }
24
25    public String JavaDoc getAttributeDescription(String JavaDoc attribute)
26    {
27       if (attribute.equals("Enabled"))
28       {
29          return "The enable status of this interceptor";
30       }
31       if (attribute.equals("Type"))
32       {
33          return "The type of this interceptor";
34       }
35       return super.getAttributeDescription(attribute);
36    }
37 }
38
Popular Tags