com.github.dynamicextensionsalfresco.osgi.felix.FelixFrameworkFactoryBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alfresco-integration Show documentation
Show all versions of alfresco-integration 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.osgi.felix;
import com.github.dynamicextensionsalfresco.osgi.spring.AbstractFrameworkFactoryBean;
import org.osgi.framework.launch.Framework;
import org.osgi.framework.launch.FrameworkFactory;
import org.springframework.beans.factory.FactoryBean;
/**
* {@link FactoryBean} that creates Felix-based {@link Framework}s.
*
* @author Laurens Fridael
*
*/
public class FelixFrameworkFactoryBean extends AbstractFrameworkFactoryBean {
private FrameworkFactory frameworkFactory;
@Override
protected FrameworkFactory getFrameworkFactory() {
if (frameworkFactory == null) {
frameworkFactory = new org.apache.felix.framework.FrameworkFactory();
}
return frameworkFactory;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy