org.springframework.osgi.samples.weather.extension.bundle
Class VirtualBundleFactoryBean

java.lang.Object
  extended by org.springframework.osgi.context.support.BundleFactoryBean
      extended by 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

Field Summary
 
Fields inherited from class org.springframework.osgi.context.support.BundleFactoryBean
bundleContext, location, symbolicName
 
Constructor Summary
VirtualBundleFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 String getArtifactId()
           
 Bundle getBundle()
           
 Set getExports()
           
 String getGroupId()
           
 Set getImports()
           
 String getVersion()
           
 void setArtifactId(String artifactId)
           
 void setExports(Set exports)
           
 void setGroupId(String groupId)
           
 void setImports(Set imports)
           
 void setVersion(String version)
           
 
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
 

Constructor Detail

VirtualBundleFactoryBean

public VirtualBundleFactoryBean()
Method Detail

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.