Class EndpointMethodJmxProcessor

java.lang.Object
io.micronaut.configuration.jmx.endpoint.EndpointMethodJmxProcessor
All Implemented Interfaces:
io.micronaut.context.processor.AnnotationProcessor<io.micronaut.management.endpoint.annotation.Endpoint,io.micronaut.inject.ExecutableMethod<?,?>>, io.micronaut.context.processor.ExecutableMethodProcessor<io.micronaut.management.endpoint.annotation.Endpoint>

@Singleton @Requires(property="jmx.register-endpoints", notEquals="false") public class EndpointMethodJmxProcessor extends Object implements io.micronaut.context.processor.ExecutableMethodProcessor<io.micronaut.management.endpoint.annotation.Endpoint>
Registers endpoint methods with JMX.
Since:
1.0
Author:
James Kleeh
  • Constructor Details

    • EndpointMethodJmxProcessor

      public EndpointMethodJmxProcessor(MBeanServer mBeanServer, @Named("endpoint") NameGenerator nameGenerator, @Named("endpoint") DynamicMBeanFactory mBeanFactory, io.micronaut.context.BeanContext beanContext)
      Parameters:
      mBeanServer - The server to register the endpoint beans with
      nameGenerator - The class to generate the bean names
      mBeanFactory - The factory to create the beans with
      beanContext - The bean context to retrieve the endpoint instance
  • Method Details

    • process

      public void process(io.micronaut.inject.BeanDefinition<?> beanDefinition, io.micronaut.inject.ExecutableMethod<?,?> method)
      Specified by:
      process in interface io.micronaut.context.processor.AnnotationProcessor<io.micronaut.management.endpoint.annotation.Endpoint,io.micronaut.inject.ExecutableMethod<?,?>>
      Specified by:
      process in interface io.micronaut.context.processor.ExecutableMethodProcessor<io.micronaut.management.endpoint.annotation.Endpoint>