KickJava   Java API By Example, From Geeks To Geeks.

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


1 /*
2  * Copyright (C) The MX4J Contributors.
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 SecurityMBeanServerInterceptor MBean.
15  *
16  * @version $Revision: 1.3 $
17  */

18 public class SecurityMBeanServerInterceptorMBeanDescription extends MBeanDescriptionAdapter
19 {
20    public String JavaDoc getMBeanDescription()
21    {
22       return "The interceptor that performs security checks for MBeanServer to MBean calls";
23    }
24
25    public String JavaDoc getAttributeDescription(String JavaDoc attribute)
26    {
27       if (attribute.equals("Type"))
28       {
29          return "The type of this interceptor";
30       }
31       if (attribute.equals("Enabled"))
32       {
33          return "This interceptor is always enabled and cannot be disabled";
34       }
35       return super.getAttributeDescription(attribute);
36    }
37 }
38
Popular Tags