KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > appserv > management > config > AMXConfig


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.appserv.management.config;
24
25 import com.sun.appserv.management.base.XTypes;
26
27
28
29 import javax.management.NotificationEmitter JavaDoc;
30
31 import com.sun.appserv.management.base.AMX;
32
33 /**
34     All Config MBeans must extend this interface, whether they
35     represent elements or whether they are managers. Extending
36     this interface implies that the class is part of the API
37     for configuration.
38     <p>
39     All AMXConfig s are required to implement NotificationEmitter.
40     A Config must issue {@link javax.management.AttributeChangeNotification} when
41     changes are made to the configuration.
42  */

43 public interface AMXConfig extends AMX
44 {
45     /**
46         The type of the Notification emitted when a config element
47         is created.
48      */

49     public final String JavaDoc CONFIG_CREATED_NOTIFICATION_TYPE =
50         "com.sun.appserv.management.config.ConfigCreated";
51     
52     /**
53         The type of the Notification emitted when a config element
54         is removed.
55      */

56     public final String JavaDoc CONFIG_REMOVED_NOTIFICATION_TYPE =
57         "com.sun.appserv.management.config.ConfigRemoved";
58         
59     /**
60         The key within the Notification's Map of type
61         CONFIG_REMOVED_NOTIFICATION_TYPE which yields the ObjectName
62         of the created or removed config.
63      */

64     public final String JavaDoc CONFIG_OBJECT_NAME_KEY =
65                     "ConfigObjectName";
66
67
68
69
70 }
71
Popular Tags