KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > catalina > mbeans > RoleMBean


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */

17
18 package org.apache.catalina.mbeans;
19
20
21 import javax.management.MBeanException JavaDoc;
22 import javax.management.MBeanServer JavaDoc;
23 import javax.management.RuntimeOperationsException JavaDoc;
24
25 import org.apache.tomcat.util.modeler.BaseModelMBean;
26 import org.apache.tomcat.util.modeler.ManagedBean;
27 import org.apache.tomcat.util.modeler.Registry;
28
29
30 /**
31  * <p>A <strong>ModelMBean</strong> implementation for the
32  * <code>org.apache.catalina.Role</code> component.</p>
33  *
34  * @author Craig R. McClanahan
35  * @version $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
36  */

37
38 public class RoleMBean extends BaseModelMBean {
39
40
41     // ----------------------------------------------------------- Constructors
42

43
44     /**
45      * Construct a <code>ModelMBean</code> with default
46      * <code>ModelMBeanInfo</code> information.
47      *
48      * @exception MBeanException if the initializer of an object
49      * throws an exception
50      * @exception RuntimeOperationsException if an IllegalArgumentException
51      * occurs
52      */

53     public RoleMBean()
54         throws MBeanException JavaDoc, RuntimeOperationsException JavaDoc {
55
56         super();
57
58     }
59
60
61     // ----------------------------------------------------- Instance Variables
62

63
64     /**
65      * The configuration information registry for our managed beans.
66      */

67     protected Registry registry = MBeanUtils.createRegistry();
68
69
70     /**
71      * The <code>MBeanServer</code> in which we are registered.
72      */

73     protected MBeanServer JavaDoc mserver = MBeanUtils.createServer();
74
75
76     /**
77      * The <code>ManagedBean</code> information describing this MBean.
78      */

79     protected ManagedBean managed =
80         registry.findManagedBean("Role");
81
82
83     // ------------------------------------------------------------- Attributes
84

85
86     // ------------------------------------------------------------- Operations
87

88
89 }
90
Popular Tags