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

com.github.dynamicextensionsalfresco.event.impl.Activator Maven / Gradle / Ivy

Go to download

Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features

There is a newer version: 3.1.0
Show newest version
package com.github.dynamicextensionsalfresco.event.impl;

import com.github.dynamicextensionsalfresco.event.EventBus;
import org.jetbrains.annotations.NotNull;
import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;

/**
 * @author Laurent Van der Linden
 */
public final class Activator implements BundleActivator {

    public void start(@NotNull BundleContext context) {
        if (context == null) {
            throw new IllegalArgumentException("context is null");
        }
        context.registerService(EventBus.class, new DefaultEventBus(context), null);
    }

    public void stop(@NotNull BundleContext context) {
        if (context == null) {
            throw new IllegalArgumentException("context is null");
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy