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 Summary
ConstructorDescriptionEndpointMethodJmxProcessor
(MBeanServer mBeanServer, NameGenerator nameGenerator, DynamicMBeanFactory mBeanFactory, io.micronaut.context.BeanContext beanContext) -
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(io.micronaut.inject.BeanDefinition<?> beanDefinition, io.micronaut.inject.ExecutableMethod<?, ?> method)
-
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 withnameGenerator
- The class to generate the bean namesmBeanFactory
- The factory to create the beans withbeanContext
- 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 interfaceio.micronaut.context.processor.AnnotationProcessor<io.micronaut.management.endpoint.annotation.Endpoint,
io.micronaut.inject.ExecutableMethod<?, ?>> - Specified by:
process
in interfaceio.micronaut.context.processor.ExecutableMethodProcessor<io.micronaut.management.endpoint.annotation.Endpoint>
-