Small edits for Connect specification
ServiceLoader&lt;ConnectFrameworkFactory&gt; sl =
ServiceLoader.load(ConnectFrameworkFactory.class);
- FrameworkFactory factory = sl.iterator().next();
+ ConnectFrameworkFactory factory = sl.iterator().next();
Framework osgiFramework = factory.newFramework(p, connectFramework);
osgiFramework.init();
osgiFramework.start();
@@ -333,7 +333,7 @@ com.acme.osgi.connect.Factory</programlisting>
<code>ConnectModule</code> method <xref linkend="org.osgi.framework.connect.ConnectModule.getContent--"
xrefstyle="hyperlink"/> is called to get the current <xref linkend="org.osgi.framework.connect.ConnectContent"
xrefstyle="hyperlink"/> for the bundle. The <code>ConnectContent</code> must be used by the Framework to access content for
- updating the bundle's current <xref linkend="org.osgi.framework.wiring.BundleRevision" xrefstyle="hyperlink"/>
+ updating the bundle's current <xref linkend="org.osgi.framework.wiring.BundleRevision" xrefstyle="hyperlink"/>.
Any exception thrown by the <code>getContent</code> method must be wrapped in a <code>BundleException</code>
and result in the <code>BundleException</code> being thrown by the bundle <code>update</code> method.</para>
</section>
@@ -502,9 +502,9 @@ com.acme.osgi.connect.Factory</programlisting>
<title>Identify Connect Bundles</title>
<para>A bundle installed in the framework can be identified as a connect bundle by introspection of
the <link linkend="org.osgi.framework.namespace.IdentityNamespace.CAPABILITY_TAGS_ATTRIBUTE"><code>tags</code></link> attribute on
- <link linkend="org.osgi.framework.namespace.IdentityNamespace.IDENTITY_NAMESPACE"><code>osgi.identity</code></link>
+ the <link linkend="org.osgi.framework.namespace.IdentityNamespace.IDENTITY_NAMESPACE"><code>osgi.identity</code></link>
capability for the current bundle revision. All connect bundle revisions must have a <code>tags</code>
- attribute value that contains <link linkend="org.osgi.framework.connect.ConnectContent.TAG_OSGI_CONNECT"><code>osgi.connect</code></link>.
+ attribute value that contains the string value <link linkend="org.osgi.framework.connect.ConnectContent.TAG_OSGI_CONNECT"><code>osgi.connect</code></link>.
For example, the following method determines if a <code>BundleRevision</code> is for a connect bundle:</para>
<programlisting>boolean isConnect(BundleRevision revision) {
@@ -538,7 +538,7 @@ com.acme.osgi.connect.Factory</programlisting>
<section>
<title>Extension Bundles</title>
- <para>Extension bundles as defined by <xref linkend="framework.module.extensionbundles"/> can
+ <para>Extension bundles as defined by the section <xref linkend="framework.module.extensionbundles"/> can
deliver parts, or fragments, of the Framework implementation. A Framework that supports
extension bundles will modify its own class loader to append the content of the framework
extension as defined by <xref linkend="framework.module.extensionClassPath"/>.
