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

com.github.dynamicextensionsalfresco.blueprint.DynamicExtensionsApplicationContextCreator 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: 2.1.4
Show newest version
package com.github.dynamicextensionsalfresco.blueprint;

import com.github.dynamicextensionsalfresco.blueprint.spring3.Spring3HostApplicationContext;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
import org.springframework.context.ApplicationContext;

public class DynamicExtensionsApplicationContextCreator extends DynamicExtensionsApplicationContextCreatorBase {
    @Override
    protected DynamicExtensionsApplicationContextBase createNewInstance(
            String[] configurationLocations, ApplicationContext hostApplicationContext) {
        return new DynamicExtensionsApplicationContext(
                configurationLocations, hostApplicationContext);
    }

    @Override
    protected ApplicationContext getSpringSpecificHostApplicationContext(
            BundleContext bundleContext, ServiceReference serviceReference) {
        return new Spring3HostApplicationContext(
                (ApplicationContext) bundleContext.getService(serviceReference));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy