org.jolokia.service.jmx.osgi.JmxServiceActivator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jolokia-service-jmx Show documentation
Show all versions of jolokia-service-jmx Show documentation
Jolokia :: Service :: JMX Request Handler
package org.jolokia.service.jmx.osgi;
import org.jolokia.server.core.service.request.RequestHandler;
import org.jolokia.service.jmx.LocalRequestHandler;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
/**
* Simple activator for creating a JMX request handler
*
* @author roland
* @since 02.03.14
*/
public class JmxServiceActivator implements BundleActivator {
/** {@inheritDoc} */
public void start(BundleContext context) throws Exception {
context.registerService(RequestHandler.class.getName(),new LocalRequestHandler(1000),null);
}
/** {@inheritDoc} */
public void stop(BundleContext context) throws Exception { }
}