@Singleton @Requires(property="jmx.registerEndpoints", defaultValue="true") public class EndpointMethodJmxProcessor extends Object implements ExecutableMethodProcessor<Endpoint>
| Constructor and Description |
|---|
EndpointMethodJmxProcessor(MBeanServer mBeanServer,
NameGenerator nameGenerator,
DynamicMBeanFactory mBeanFactory,
BeanContext beanContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
process(BeanDefinition<?> beanDefinition,
ExecutableMethod<?,?> method)
The process method will be called for every
ExecutableMethod that is annotated with the type parameter A. |
public EndpointMethodJmxProcessor(MBeanServer mBeanServer, @Named(value="endpoint") NameGenerator nameGenerator, @Named(value="endpoint") DynamicMBeanFactory mBeanFactory, 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(BeanDefinition<?> beanDefinition, ExecutableMethod<?,?> method)
ExecutableMethodProcessorExecutableMethod that is annotated with the type parameter A.process in interface AnnotationProcessor<Endpoint,ExecutableMethod<?,?>>process in interface ExecutableMethodProcessor<Endpoint>beanDefinition - The bean definition to processmethod - The executable method