KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.lang.reflect.Method JavaDoc;
14 import java.lang.reflect.Constructor JavaDoc;
15
16 /**
17  * Management interface description for the InvokerMBeanServerInterceptor MBean.
18  * @author <a HREF="mailto:biorn_steedom@users.sourceforge.net">Simone Bordet</a>
19  * @version $Revision: 1.1 $
20  */

21 public class InvokerMBeanServerInterceptorMBeanDescription extends MBeanDescriptionAdapter
22 {
23    public String JavaDoc getMBeanDescription()
24    {
25       return "The interceptor that invokes on the MBean instance";
26    }
27
28    public String JavaDoc getAttributeDescription(String JavaDoc attribute)
29    {
30       if (attribute.equals("Type"))
31       {
32          return "The type of this interceptor";
33       }
34       if (attribute.equals("Enabled"))
35       {
36          return "This interceptor is always enabled and cannot be disabled";
37       }
38       return super.getAttributeDescription(attribute);
39    }
40 }
41
Popular Tags