com.github.dynamicextensionsalfresco.blueprint.DynamicExtensionsApplicationContextCreator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blueprint-integration-spring-3 Show documentation
Show all versions of blueprint-integration-spring-3 Show documentation
Adds an OSGi container to alfresco repository supporting dynamic code reloading, classpath isolation and a bunch of other useful features
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