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.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 MBeanInfoAssembler { 32 33 /** 34 * Indicate whether a particular bean should be included in the registration 35 * process, if it is not specified in the <code>beans</code> map of the 36 * <code>MBeanExporter</code>. 37 * @param beanClass the class of the bean (might be a proxy class) 38 * @param beanName the name of the bean in the bean factory 39 */ 40 boolean includeBean(Class beanClass, String beanName); 41 42 } 43