Package org.springframework.context.annotation

Examples of org.springframework.context.annotation.MBeanExportConfiguration


  @Bean
  @ConditionalOnMissingBean(value = MBeanExporter.class, search = SearchStrategy.CURRENT)
  public AnnotationMBeanExporter mbeanExporter() {
    // Re-use the @EnableMBeanExport configuration
    MBeanExportConfiguration config = new MBeanExportConfiguration();
    config.setEnvironment(this.environment);
    config.setBeanFactory(this.beanFactory);
    config.setImportMetadata(new StandardAnnotationMetadata(Empty.class));
    // But add a custom naming strategy
    AnnotationMBeanExporter exporter = config.mbeanExporter();
    exporter.setNamingStrategy(this.namingStrategy);
    return exporter;
  }
View Full Code Here

TOP

Related Classes of org.springframework.context.annotation.MBeanExportConfiguration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.