@Singleton
@Requires(property="jmx.register-endpoints",
notEquals="false")
public class EndpointMethodJmxProcessor
extends java.lang.Object
implements io.micronaut.context.processor.ExecutableMethodProcessor<io.micronaut.management.endpoint.annotation.Endpoint>
Constructor and Description |
---|
EndpointMethodJmxProcessor(javax.management.MBeanServer mBeanServer,
NameGenerator nameGenerator,
DynamicMBeanFactory mBeanFactory,
io.micronaut.context.BeanContext beanContext) |
Modifier and Type | Method and Description |
---|---|
void |
process(io.micronaut.inject.BeanDefinition<?> beanDefinition,
io.micronaut.inject.ExecutableMethod<?,?> method) |
public EndpointMethodJmxProcessor(javax.management.MBeanServer mBeanServer, @Named(value="endpoint") NameGenerator nameGenerator, @Named(value="endpoint") DynamicMBeanFactory mBeanFactory, io.micronaut.context.BeanContext beanContext)
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 instancepublic void process(io.micronaut.inject.BeanDefinition<?> beanDefinition, io.micronaut.inject.ExecutableMethod<?,?> method)
process
in interface io.micronaut.context.processor.AnnotationProcessor<io.micronaut.management.endpoint.annotation.Endpoint,io.micronaut.inject.ExecutableMethod<?,?>>
process
in interface io.micronaut.context.processor.ExecutableMethodProcessor<io.micronaut.management.endpoint.annotation.Endpoint>