KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > dottedname > DottedNameRegistry


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  
24 /*
25  * $Header: /cvs/glassfish/admin-core/admin/src/java/com/sun/enterprise/admin/dottedname/DottedNameRegistry.java,v 1.3 2005/12/25 03:47:32 tcfujii Exp $
26  * $Revision: 1.3 $
27  * $Date: 2005/12/25 03:47:32 $
28  */

29  
30 package com.sun.enterprise.admin.dottedname;
31  
32 import java.util.Set JavaDoc;
33 import javax.management.ObjectName JavaDoc;
34
35
36
37 /*
38     A registry for DottedName-to-ObjectName mapping.
39  */

40 public interface DottedNameRegistry extends DottedNameQuery
41 {
42     /*
43         Add a mapping from a dotted name to an ObjectName. If an existing
44         mapping is present, it is replaced. An exception may also
45         be thrown if the dotted name is illegal or either parameter is null,
46         or in general the implementing class does not allow such a mapping.
47         
48         Multiple dotted names may be associated with the same ObjectName; it is
49         a policy decision of the caller whether to use that facility.
50         
51         @param dottedName the dotted name to which the ObjectName should be associated
52         @param objectName the name of the MBean which associates with the dotted name.
53      */

54     void add( String JavaDoc dottedName, ObjectName JavaDoc objectName );
55     
56     /*
57         Removes the entry associating the dotted name with an ObjectName. No error
58         is produced if there is no such mapping.
59         
60         @param dottedName the dotted name to which the ObjectName should be associated
61      */

62     void remove( String JavaDoc dottedName );
63     
64     /*
65         Removes all dotted names associated with this ObjectName. No error
66         is produced if there is no such mapping.
67         
68         @param objectName the ObjectName associated with one or more dotted names
69      */

70     void remove( ObjectName JavaDoc objectName );
71 }
72
73
Popular Tags