aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From build...@apache.org
Subject svn commit: r800239 - /websites/staging/aries/trunk/content/modules/spi-fly.html
Date Wed, 14 Dec 2011 12:54:11 GMT
Author: buildbot
Date: Wed Dec 14 12:54:10 2011
New Revision: 800239

Log:
Staging update by buildbot

Modified:
    websites/staging/aries/trunk/content/modules/spi-fly.html

Modified: websites/staging/aries/trunk/content/modules/spi-fly.html
==============================================================================
--- websites/staging/aries/trunk/content/modules/spi-fly.html (original)
+++ websites/staging/aries/trunk/content/modules/spi-fly.html Wed Dec 14 12:54:10 2011
@@ -283,35 +283,42 @@ to have the ThreadContextClassLoader set
 can use the static weaving approach.</p>
 <h2 id="use_with_dynamic_weaving">Use with Dynamic Weaving</h2>
 <p>Install and start the <tt>org.apache.aries.spifly.dynamic.bundle</tt>
into the system. This bundle 
-has a dependency on <tt>org.objectweb.asm</tt> version 3.2 or newer.</p>
+has a dependency on <tt><a href="http://search.maven.org/#artifactdetails|asm|asm-all|3.2|jar">org.objectweb.asm</a></tt>
version 3.2 or newer and on the Aries 
+Util bundle.</p>
 <pre>osgi> ss    
 Framework is launched.    
 id  State       Bundle
-0   ACTIVE      org.eclipse.osgi_3.7.0.v20110304
-1   ACTIVE      org.objectweb.asm_3.2.0.v200909071300
-2   ACTIVE      org.apache.aries.spifly.dynamic.bundle_0.4.0.SNAPSHOT</pre>
+0   ACTIVE      org.eclipse.osgi_3.7.1.R37x_v20110808-1106
+1   ACTIVE      org.objectweb.asm.all_3.2.0
+2   ACTIVE      org.apache.aries.util_0.5.0.SNAPSHOT
+3   ACTIVE      org.apache.aries.spifly.dynamic.bundle_0.4.0.SNAPSHOT
 
-<h2 id="use_with_static_weaving">Use with Static Weaving</h2>
-<p>For static use, you need to modify the client bundle before installing it into the
system. 
+##Use with Static Weaving##
+For static use, you need to modify the client bundle before installing it into the system.

 The modification changes the byte code around java.util.ServiceLoader.load() calls in the

 bundle and inserts calls to set the correct ThreadContextClassLoader around it.
-Provider bundles are still handled dynamically.</p>
-<h3 id="to_statically_weave_a_bundle">To statically weave a bundle</h3>
-<p>The easiest way to invoke the static weaver is to take the <tt>org.apache.aries.spifly.static.tool</tt>
-jar with dependencies. This jar can be created by running <tt>mvn assembly:single</tt>
in this maven module.</p>
-<p>Then run the static tool on any bundle that needs processing:
+Provider bundles are still handled dynamically.
+
+###To statically weave a bundle###
+The easiest way to invoke the static weaver is to take the <tt>org.apache.aries.spifly.static.tool</tt>
+jar with dependencies. This jar can be created by running <tt>mvn assembly:single</tt>
in this maven module.
+
+Then run the static tool on any bundle that needs processing:
 <pre>
 java -jar org.apache.aries.spifly.static.tool-0.4-with-dependencies.jar mybundle.jar
-</pre></p>
+</pre>
+
 <p>This will produce a second bundle with the same name with the _spifly suffix appended,
so 
 in this case the generated bundle will be called mybundle_spifly.jar.</p>
-<p>At runtime, install the <tt>org.apache.aries.spifly.static.bundle</tt>
into the system:
+<p>At runtime, install the <tt>org.apache.aries.spifly.static.bundle</tt>
into the system, like
+the dynamic weaving bundle it has a dependency on the Aries Util bundle:
 <pre>osgi&gt; ss
 Framework is launched.
 id  State       Bundle
-0   ACTIVE      org.eclipse.osgi_3.6.1.R36x_v20100806
+0   ACTIVE      org.eclipse.osgi_3.6.2.R36x_v20110210
 1   ACTIVE      org.eclipse.osgi.services_3.2.100.v20100503
-2   ACTIVE      org.apache.aries.spifly.static.bundle_0.4.0.SNAPSHOT</pre></p>
+2   ACTIVE      org.apache.aries.util_0.5.0.SNAPSHOT
+3   ACTIVE      org.apache.aries.spifly.static.bundle_0.4.0.SNAPSHOT</p>
 <p>Then install and start the statically woven bundle into the system.</p>
 <h2 id="examples">Examples</h2>
 <p>The <tt>spi-fly-examples</tt> directory contains a number of example
bundles that can be 



Mime
View raw message