|
|
|
@ -23,6 +23,7 @@ import org.springframework.beans.BeansException;
|
|
|
|
|
import org.springframework.beans.factory.BeanFactory;
|
|
|
|
|
import org.springframework.beans.factory.BeanFactoryAware;
|
|
|
|
|
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
|
|
|
@ -77,6 +78,7 @@ public class IntegrationAutoConfiguration {
|
|
|
|
|
@Configuration
|
|
|
|
|
@ConditionalOnClass(EnableIntegrationMBeanExport.class)
|
|
|
|
|
@ConditionalOnMissingBean(value = IntegrationMBeanExporter.class, search = SearchStrategy.CURRENT)
|
|
|
|
|
@ConditionalOnBean(MBeanServer.class)
|
|
|
|
|
@ConditionalOnProperty(prefix = "spring.jmx", name = "enabled", havingValue = "true", matchIfMissing = true)
|
|
|
|
|
protected static class IntegrationJmxConfiguration
|
|
|
|
|
implements EnvironmentAware, BeanFactoryAware {
|
|
|
|
|