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.assembler;
18:
19: /**
20: * Extends the <code>MBeanInfoAssembler</code> to add autodetection logic.
21: * Implementations of this interface are given the opportunity by the
22: * <code>MBeanExporter</code> to include additional beans in the registration process.
23: *
24: * <p>The exact mechanism for deciding which beans to include is left to
25: * implementing classes.
26: *
27: * @author Rob Harrop
28: * @since 1.2
29: * @see org.springframework.jmx.export.MBeanExporter
30: */
31: public interface AutodetectCapableMBeanInfoAssembler extends
32: MBeanInfoAssembler {
33:
34: /**
35: * Indicate whether a particular bean should be included in the registration
36: * process, if it is not specified in the <code>beans</code> map of the
37: * <code>MBeanExporter</code>.
38: * @param beanClass the class of the bean (might be a proxy class)
39: * @param beanName the name of the bean in the bean factory
40: */
41: boolean includeBean(Class beanClass, String beanName);
42:
43: }
|