01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * 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: import javax.management.MBeanException;
21: import javax.management.MBeanServer;
22: import javax.management.RuntimeOperationsException;
23:
24: import org.apache.tomcat.util.modeler.BaseModelMBean;
25: import org.apache.tomcat.util.modeler.ManagedBean;
26: import org.apache.tomcat.util.modeler.Registry;
27:
28: /**
29: * <p>A <strong>ModelMBean</strong> implementation for the
30: * <code>org.apache.catalina.Role</code> component.</p>
31: *
32: * @author Craig R. McClanahan
33: * @version $Revision: 467222 $ $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $
34: */
35:
36: public class RoleMBean extends BaseModelMBean {
37:
38: // ----------------------------------------------------------- Constructors
39:
40: /**
41: * Construct a <code>ModelMBean</code> with default
42: * <code>ModelMBeanInfo</code> information.
43: *
44: * @exception MBeanException if the initializer of an object
45: * throws an exception
46: * @exception RuntimeOperationsException if an IllegalArgumentException
47: * occurs
48: */
49: public RoleMBean() throws MBeanException,
50: RuntimeOperationsException {
51:
52: super ();
53:
54: }
55:
56: // ----------------------------------------------------- Instance Variables
57:
58: /**
59: * The configuration information registry for our managed beans.
60: */
61: protected Registry registry = MBeanUtils.createRegistry();
62:
63: /**
64: * The <code>MBeanServer</code> in which we are registered.
65: */
66: protected MBeanServer mserver = MBeanUtils.createServer();
67:
68: /**
69: * The <code>ManagedBean</code> information describing this MBean.
70: */
71: protected ManagedBean managed = registry.findManagedBean("Role");
72:
73: // ------------------------------------------------------------- Attributes
74:
75: // ------------------------------------------------------------- Operations
76:
77: }
|