META-INF.spring.osgi-container.packages-context.xml 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
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <description> Configures the Java packages that are registered as system packages in the OSGi Framework. The classes in these packages are then available to Bundles managed by the OSGi Framework. </description> <bean id="osgi.container.SystemPackages" class="com.github.dynamicextensionsalfresco.osgi.spring.ConfigurationValuesFactoryBean"> <property name="sets"> <list> <ref bean="osgi.container.WebServerJavaPackages" /> <ref bean="osgi.container.DynamicExtensionsJavaPackages" /> <ref bean="osgi.container.WebApplicationJavaPackages" /> </list> </property> </bean> <bean id="osgi.container.WebServerJavaPackages" class="com.github.dynamicextensionsalfresco.osgi.spring.SystemPackageConfigurationFactoryBean"> <description>Classes loaded by the web server</description> <property name="configurations" value="classpath:/META-INF/spring/osgi-container/packages/web-server-packages.txt" /> <property name="configurationLocations" value="classpath*:/dynamic-extensions/configuration/packages/web-server-packages.txt" /> </bean> <bean id="osgi.container.DynamicExtensionsJavaPackages" class="com.github.dynamicextensionsalfresco.osgi.spring.SystemPackageConfigurationFactoryBean"> <description>The Dynamic Extensions framework</description> <property name="configurations" value="classpath:/META-INF/spring/osgi-container/packages/dynamic-extensions-packages.txt" /> </bean> <bean id="osgi.container.WebApplicationJavaPackages" class="com.github.dynamicextensionsalfresco.osgi.spring.WebApplicationSystemPackageFactoryBean"> <description>Scans for Java packages in JARs in /WEB-INF/lib</description> <property name="javaPackageScanner" ref="osgi.container.JavaPackageScannerFactory" /> <property name="configuration" ref="osgi.container.Configuration" /> </bean> <!-- JavaPackageScanner dependencies keep some internal caches, so make it disposable --> <bean id="osgi.container.JavaPackageScannerFactory" class="org.springframework.beans.factory.config.ObjectFactoryCreatingFactoryBean"> <property name="targetBeanName" value="osgi.container.JavaPackageScanner" /> </bean> <bean id="osgi.container.JavaPackageScanner" class="com.github.dynamicextensionsalfresco.osgi.JavaPackageScanner" scope="prototype"> <property name="descriptorService" ref="DescriptorService" /> </bean> </beans>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy