{@link Bundle} installer.
This {@link FactoryBean} allows customers to use Spring to drive bundlemanagement. Bundles states can be modified using the
action
(defaults to
start) and
destroyAction
(not set by default) parameters.
For example, to automatically install and start a bundle from the local maven repository (assuming the bundle has been already retrieved), one can use the following configuration:
<osgi:bundle id="aBundle" symbolic-name="org.company.bundles.a" location="file:${localRepository}/org/company/bundles/a/${pom.version}/a-${pom.version}.jar" action="start"/>
Note: Pay attention when installing bundles dynamically since classes can be loaded aggressively.
@author Andy Piper
@author Costin Leau
@see BundleAction