01: /*
02: * Copyright 2002,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16:
17: package org.apache.catalina.mbeans;
18:
19: import javax.management.MBeanException;
20: import javax.management.MBeanServer;
21: import javax.management.RuntimeOperationsException;
22:
23: import org.apache.commons.modeler.BaseModelMBean;
24: import org.apache.commons.modeler.ManagedBean;
25: import org.apache.commons.modeler.Registry;
26:
27: /**
28: * <p>A <strong>ModelMBean</strong> implementation for the
29: * <code>org.apache.catalina.Role</code> component.</p>
30: *
31: * @author Craig R. McClanahan
32: * @version $Revision: 1.3 $ $Date: 2004/02/27 14:58:45 $
33: */
34:
35: public class RoleMBean extends BaseModelMBean {
36:
37: // ----------------------------------------------------------- Constructors
38:
39: /**
40: * Construct a <code>ModelMBean</code> with default
41: * <code>ModelMBeanInfo</code> information.
42: *
43: * @exception MBeanException if the initializer of an object
44: * throws an exception
45: * @exception RuntimeOperationsException if an IllegalArgumentException
46: * occurs
47: */
48: public RoleMBean() throws MBeanException,
49: RuntimeOperationsException {
50:
51: super ();
52:
53: }
54:
55: // ----------------------------------------------------- Instance Variables
56:
57: /**
58: * The configuration information registry for our managed beans.
59: */
60: protected Registry registry = MBeanUtils.createRegistry();
61:
62: /**
63: * The <code>MBeanServer</code> in which we are registered.
64: */
65: protected MBeanServer mserver = MBeanUtils.createServer();
66:
67: /**
68: * The <code>ManagedBean</code> information describing this MBean.
69: */
70: protected ManagedBean managed = registry.findManagedBean("Role");
71:
72: // ------------------------------------------------------------- Attributes
73:
74: // ------------------------------------------------------------- Operations
75:
76: }
|