Package org.springframework.jmx.export.annotation

Examples of org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource


        server.unregisterMBean(name);
    }

    protected void doStart() throws Exception {
        assembler = new MetadataMBeanInfoAssembler();
        assembler.setAttributeSource(new AnnotationJmxAttributeSource());

        // create mbean server if is has not be injected.
        if (server == null) {
            finalizeSettings();
            createMBeanServer();
View Full Code Here


  private int jmxConnectorPort = 0;
    private CamelNamingStrategy namingStrategy;

    public InstrumentationAgentImpl() {
      assembler = new MetadataMBeanInfoAssembler();
      assembler.setAttributeSource(new AnnotationJmxAttributeSource());
            //naming = new CamelNamingStrategy(agent.getMBeanServer().getDefaultDomain());
        namingStrategy = new CamelNamingStrategy();
    }
View Full Code Here

        return bean;
    }

    private static BeanDefinition getMBeanExporterBeanDefinition(String defaultDomain) {
        final AnnotationJmxAttributeSource annotationSource = new AnnotationJmxAttributeSource();

        final GenericBeanDefinition bean = new GenericBeanDefinition();
        bean.setBeanClass(MBeanExporter.class);
        MutablePropertyValues properties = new MutablePropertyValues();
        properties.add("server", ManagementFactory.getPlatformMBeanServer());
View Full Code Here

      }
     
      // assemble MBean info (from annotations by default)
      ModelMBean modelMBean = new RequiredModelMBean();
      modelMBean.setManagedResource(mbean, MR_TYPE_OBJECT_REFERENCE);
      MBeanInfoAssembler mBeanInfoAssembler = new MetadataMBeanInfoAssembler(new AnnotationJmxAttributeSource());
      modelMBean.setModelMBeanInfo(mBeanInfoAssembler.getMBeanInfo(mbean, objectName.getCanonicalName()));
      registrar.doRegister(modelMBean, objectName);
    }
    catch (Exception e) {
      throw new JmxRegisterException("error registering MBean", e);
View Full Code Here

        server.unregisterMBean(name);
    }

    protected void doStart() throws Exception {
        assembler = new MetadataMBeanInfoAssembler();
        assembler.setAttributeSource(new AnnotationJmxAttributeSource());

        // create mbean server if is has not be injected.
        if (server == null) {
            finalizeSettings();
            createMBeanServer();
View Full Code Here

        return bean;
    }

    private static BeanDefinition getMBeanExporterBeanDefinition(String defaultDomain) {
        final AnnotationJmxAttributeSource annotationSource = new AnnotationJmxAttributeSource();

        final GenericBeanDefinition bean = new GenericBeanDefinition();
        bean.setBeanClass(MBeanExporter.class);
        MutablePropertyValues properties = new MutablePropertyValues();
        properties.add("server", ManagementFactory.getPlatformMBeanServer());
View Full Code Here

  }

  @Bean
  @ConditionalOnMissingBean(ObjectNamingStrategy.class)
  public ParentAwareNamingStrategy objectNamingStrategy() {
    return new ParentAwareNamingStrategy(new AnnotationJmxAttributeSource());
  }
View Full Code Here

        return bean;
    }

    private static BeanDefinition getMBeanExporterBeanDefinition(String defaultDomain) {
        final AnnotationJmxAttributeSource annotationSource = new AnnotationJmxAttributeSource();

        final GenericBeanDefinition bean = new GenericBeanDefinition();
        bean.setBeanClass(MBeanExporter.class);
        MutablePropertyValues properties = new MutablePropertyValues();
        properties.add("server", ManagementFactory.getPlatformMBeanServer());
View Full Code Here

    }

    protected void doStart() throws Exception {
        ObjectHelper.notNull(camelContext, "CamelContext");
        assembler = new MetadataMBeanInfoAssembler();
        assembler.setAttributeSource(new AnnotationJmxAttributeSource());

        // create mbean server if is has not be injected.
        if (server == null) {
            finalizeSettings();
            createMBeanServer();
View Full Code Here

TOP

Related Classes of org.springframework.jmx.export.annotation.AnnotationJmxAttributeSource

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.