-
1. Re: Splitting up framework bootstrap config
thomas.diesler Apr 29, 2010 4:25 PM (in response to thomas.diesler)Done (http://github.com/jbosgi/jbosgi-framework/commit/b688a0c5a2c9f76b0de0479146fdaa2202498139)
The OSGiFrameworkFactory now recognises these descriptors
bootstraps.add("META-INF/jboss-osgi-bootstrap.xml");
bootstraps.add("META-INF/jboss-osgi-system-bootstrap.xml");
bootstraps.add("META-INF/jboss-osgi-custom-bootstrap.xml");
By default the beans from any of those will be loaded.
The system bootstrap beans now live here
http://github.com/jbosgi/jbosgi-framework/blob/master/core/src/main/resources/META-INF/jboss-osgi-system-bootstrap.xml
which is part of the framework-core.jar
You can always overwrite using these system properties
/** The system property used to get a bootstrap url */
public static final String BOOTSTRAP_URL = "org.jboss.osgi.framework.bootstrap.url";
/** The system property used to get a bootstrap path loaded from a classloader */
public static final String BOOTSTRAP_PATH = "org.jboss.osgi.framework.bootstrap.path";
See
http://github.com/jbosgi/jbosgi-framework/blob/master/core/src/test/java/org/jboss/test/osgi/core/bootstrap/FrameworkBootstrapTestCase.java