org.springframework.osgi.samples.weather.extension.bundle
Class VirtualBundleFactoryBean
java.lang.Object
org.springframework.osgi.context.support.BundleFactoryBean
org.springframework.osgi.samples.weather.extension.bundle.VirtualBundleFactoryBean
- All Implemented Interfaces:
- DisposableBean, FactoryBean, InitializingBean, BundleContextAware
public class VirtualBundleFactoryBean
- extends BundleFactoryBean
BundleFactoryBean that creates bundles on the fly from regular jar files or
maven project jars. Version and identifying information is injected dynamically
as the jar is loaded. Bundle exports are synthesized based on the packages
incorporated in the jar file. Jars are by default loaded from the local maven
repository, but a remote repository can also be specified using the bundleURL
property.
- Author:
- Andy Piper
Methods inherited from class org.springframework.osgi.context.support.BundleFactoryBean |
destroy, getObject, getObjectType, isSingleton, setAction, setBundleContext, setClassloader, setLocation, setPushBundleAsContextClassloader, setStartLevel, setSymbolicName |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VirtualBundleFactoryBean
public VirtualBundleFactoryBean()
getBundle
public Bundle getBundle()
throws Exception
- Throws:
Exception
getVersion
public String getVersion()
setVersion
public void setVersion(String version)
getArtifactId
public String getArtifactId()
setArtifactId
public void setArtifactId(String artifactId)
getGroupId
public String getGroupId()
setGroupId
public void setGroupId(String groupId)
getExports
public Set getExports()
setExports
public void setExports(Set exports)
getImports
public Set getImports()
setImports
public void setImports(Set imports)
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet
in interface InitializingBean
- Overrides:
afterPropertiesSet
in class BundleFactoryBean
- Throws:
Exception
Copyright © 2006-2007 Spring Framework. All Rights Reserved.