001/* 002 * Copyright 2002-2012 the original author or authors. 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * https://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016 017package org.springframework.jmx.export.assembler; 018 019/** 020 * Extends the {@code MBeanInfoAssembler} to add autodetection logic. 021 * Implementations of this interface are given the opportunity by the 022 * {@code MBeanExporter} to include additional beans in the registration process. 023 * 024 * <p>The exact mechanism for deciding which beans to include is left to 025 * implementing classes. 026 * 027 * @author Rob Harrop 028 * @since 1.2 029 * @see org.springframework.jmx.export.MBeanExporter 030 */ 031public interface AutodetectCapableMBeanInfoAssembler extends MBeanInfoAssembler { 032 033 /** 034 * Indicate whether a particular bean should be included in the registration 035 * process, if it is not specified in the {@code beans} map of the 036 * {@code MBeanExporter}. 037 * @param beanClass the class of the bean (might be a proxy class) 038 * @param beanName the name of the bean in the bean factory 039 */ 040 boolean includeBean(Class<?> beanClass, String beanName); 041 042}