All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jolokia.service.serializer.osgi.SerializerServiceActivator Maven / Gradle / Ivy

package org.jolokia.service.serializer.osgi;

import org.jolokia.server.core.service.serializer.Serializer;
import org.jolokia.service.serializer.JolokiaSerializer;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

/**
 * Simple activator for creating a serializer object
 *
 * @author roland
 * @since 02.03.14
 */
public class SerializerServiceActivator implements BundleActivator {

    /** {@inheritDoc} */
    public void start(BundleContext context) throws Exception {

        context.registerService(Serializer.class.getName(),new JolokiaSerializer(),null);
    }

    /** {@inheritDoc} */
    public void stop(BundleContext context) throws Exception { }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy