01: /*
02: * Copyright 2002-2005 the original author or authors.
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.springframework.jmx.export.naming;
18:
19: import javax.management.MalformedObjectNameException;
20: import javax.management.ObjectName;
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 getObjectName() throws MalformedObjectNameException;
42:
43: }
|