KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > jmx > export > naming > SelfNaming


1 /*
2  * Copyright 2002-2005 the original author or authors.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.springframework.jmx.export.naming;
18
19 import javax.management.MalformedObjectNameException JavaDoc;
20 import javax.management.ObjectName JavaDoc;
21
22 /**
23  * Interface that allows infrastructure components to provide their own
24  * <code>ObjectName</code>s to the <code>MBeanExporter</code>.
25  *
26  * <p><b>Note:</b> This interface is mainly intended for internal usage.
27  *
28  * @author Rob Harrop
29  * @since 1.2.2
30  * @see org.springframework.jmx.export.MBeanExporter
31  */

32 public interface SelfNaming {
33
34     /**
35      * Return the <code>ObjectName</code> for the implementing object.
36      * @throws MalformedObjectNameException if thrown by the ObjectName constructor
37      * @see javax.management.ObjectName#ObjectName(String)
38      * @see javax.management.ObjectName#getInstance(String)
39      * @see org.springframework.jmx.support.ObjectNameManager#getInstance(String)
40      */

41     ObjectName JavaDoc getObjectName() throws MalformedObjectNameException JavaDoc;
42
43 }
44
Popular Tags