Return-Path: X-Original-To: apmail-forrest-svn-archive@www.apache.org Delivered-To: apmail-forrest-svn-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 01D4E2E18 for ; Fri, 29 Apr 2011 03:05:00 +0000 (UTC) Received: (qmail 10620 invoked by uid 500); 29 Apr 2011 03:04:59 -0000 Delivered-To: apmail-forrest-svn-archive@forrest.apache.org Received: (qmail 10568 invoked by uid 500); 29 Apr 2011 03:04:58 -0000 Mailing-List: contact svn-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Forrest Developers List" List-Id: Delivered-To: mailing list svn@forrest.apache.org Received: (qmail 10561 invoked by uid 99); 29 Apr 2011 03:04:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 03:04:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Apr 2011 03:04:54 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E46602388978; Fri, 29 Apr 2011 03:04:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1097672 - in /forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs: different.xml index.xml launch.xml site.xml Date: Fri, 29 Apr 2011 03:04:32 -0000 To: svn@forrest.apache.org From: bdube@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110429030432.E46602388978@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: bdube Date: Fri Apr 29 03:04:32 2011 New Revision: 1097672 URL: http://svn.apache.org/viewvc?rev=1097672&view=rev Log: Expand documentation Added: forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/launch.xml Modified: forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/different.xml forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/index.xml forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/site.xml Modified: forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/different.xml URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/different.xml?rev=1097672&r1=1097671&r2=1097672&view=diff ============================================================================== --- forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/different.xml (original) +++ forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/different.xml Fri Apr 29 03:04:32 2011 @@ -38,7 +38,7 @@ href="site:more/bundle">plugin bundles inherit from master.xml. $FORREST_HOME should point to the top of this whiteboard experiment, - .../whiteboard/forrest-osgi. The default Ant + /path/to/forrest/whiteboard/forrest-osgi. The default Ant target in build.xml will build the launcher as well as all plugin bundles. The Ant script assumes you have changed the environment variable $FORREST_HOME as @@ -71,6 +71,9 @@ Apache Felix™ implementation of the OSGi HTTP Service, which uses Jetty behind the scenes.

+

+ See the page on launching for more. +

Plugins in forrest-osgi Modified: forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/index.xml URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/index.xml?rev=1097672&r1=1097671&r2=1097672&view=diff ============================================================================== --- forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/index.xml (original) +++ forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/index.xml Fri Apr 29 03:04:32 2011 @@ -59,8 +59,8 @@ What is the same?

There is still the concept of core functionality supplemented - with a set of plugins. The modularity provided, and enforced, - by OSGi bundles has the characteristics necessary to form the + by a set of plugins. The modularity provided, and enforced, by + OSGi bundles has the characteristics necessary to form the basis of a plugin architecture. The communication link provided by the Apache Cocoon™ sitemap is handled by OSGi services. Added: forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/launch.xml URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/launch.xml?rev=1097672&view=auto ============================================================================== --- forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/launch.xml (added) +++ forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/launch.xml Fri Apr 29 03:04:32 2011 @@ -0,0 +1,98 @@ + + + + +

+ Launching forrest-osgi +
+ +
+ Overview +

+ Launching forrest-osgi is very similar to launching the + released version, except that static site generation is not + yet implemented. Because of the presence of bundle + org.apache.forrest.servlet, and the absence of + any static implementation, the default site + target actually launches dynamic mode, analogous to + forrest run in the released version. +

+

+ Files involved: forrest.build.xml, + bin/forrest +

+
+
+ Launcher +

+ There is a custom launcher started in main/src/java/org/apache/forrest/Forrest.java. Custom + launcher meaning a way to start an OSGi framework + instance. Once a framework implementation is found and + started, the launcher enumerates the contents of + bundle directory and installs all the bundles it + finds. It then starts all non-fragment bundles. Instead of + explicitly starting a fragment, which would throw an + exception, the fragment is bound to its host bundle by the + framework. +

+

+ To accomplish the steps above, it is not necessary to have a + custom launcher. There are standard ways to launch the + framework which would result in the above. The idea behind a + custom launcher is to provide hooks into the launch + sequence. For example, the launcher can read + forrest.properties and load only the bundles + required by the calling project, rather than all bundles. The + launcher could also configure itself based on static or + dynamic mode. +

+
+
+ After launch +

+ When the launcher is finished starting bundles, the OSGi + framework is in control. BundleActivator classes + are executed for bundles that declare one. These are generally + used to publish a service or bind to a published service. The + bundle org.apache.forrest.log discovers any + registered implementations of the service LogService and + adds a listener + implementation to provide access to Log4j, by way of + SLF4J. The bundle org.apache.forrest.servlet + discovers HttpService and + registers a servlet to enable dynamic mode operation. +

+

+ Now, the framework and bundles continue to run without + intervention. It is possible to dynamically install, remove or + update bundles, all without restarting the framework. It is + also possible to run multiple versions of a bundle + simultaneously. This is the beauty of OSGi. The current + implementation of forrest-osgi does not check for + bundles installed, removed or changed on the fly, but the + infrastructure to handle it is already present in the + framework. It is just a matter of taking the time to implement + it. +

+
+ + Modified: forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/site.xml URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/site.xml?rev=1097672&r1=1097671&r2=1097672&view=diff ============================================================================== --- forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/site.xml (original) +++ forrest/trunk/whiteboard/forrest-osgi/docs/src/documentation/content/xdocs/site.xml Fri Apr 29 03:04:32 2011 @@ -45,11 +45,28 @@ See http://forrest.apache.org/docs/linki + + + + + + + + + + + + + + + + +