[jboss-cvs] JBossAS SVN: r70182 - in projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade: helpers and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Feb 27 09:52:01 EST 2008


Author: alesj
Date: 2008-02-27 09:52:01 -0500 (Wed, 27 Feb 2008)
New Revision: 70182

Modified:
   projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/BundleState.java
   projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeader.java
   projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaderBuilder.java
   projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaderBuilders.java
   projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaders.java
   projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/DeploymentStage2BundleState.java
   projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/DeploymentStage2BundleStateMapper.java
   projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/ExportPackageHeaderBuilder.java
   projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/ImportPackageHeaderBuilder.java
Log:
javadocs, layout

Modified: projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/BundleState.java
===================================================================
--- projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/BundleState.java	2008-02-27 14:50:46 UTC (rev 70181)
+++ projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/BundleState.java	2008-02-27 14:52:01 UTC (rev 70182)
@@ -24,23 +24,27 @@
 import org.osgi.framework.Bundle;
 
 /**
- * 
  * A BundleState enum to wrap the non-type-safe Bundle state constants
  * 
  * @author <a href="baileyje at gmail.com">John Bailey</a>
  * @version $Revision: 1.1 $
  */
 public enum BundleState {
-   UNINSTALLED(Bundle.UNINSTALLED), INSTALLED(Bundle.INSTALLED), RESOLVED(Bundle.RESOLVED), STARTING(Bundle.STARTING), STOPPING(
-         Bundle.STOPPING), ACTIVE(Bundle.ACTIVE);
 
+   UNINSTALLED(Bundle.UNINSTALLED),
+   INSTALLED(Bundle.INSTALLED),
+   RESOLVED(Bundle.RESOLVED),
+   STARTING(Bundle.STARTING),
+   STOPPING(Bundle.STOPPING),
+   ACTIVE(Bundle.ACTIVE);
+
    private final int state;
 
    /**
     * 
     * Create a new BundleState.
     * 
-    * @param state
+    * @param state the state number
     */
    private BundleState(final int state)
    {
@@ -50,11 +54,10 @@
    /** 
     * Get Bundle state
     * 
-    * @return
+    * @return the state
     */
    public int getState()
    {
       return state;
    }
-
 }

Modified: projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeader.java
===================================================================
--- projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeader.java	2008-02-27 14:50:46 UTC (rev 70181)
+++ projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeader.java	2008-02-27 14:52:01 UTC (rev 70182)
@@ -22,9 +22,8 @@
 package org.jboss.osgi.plugins.facade.helpers;
 
 /**
+ * BundleHeader representing a Header value for the Bundle
  * 
- * BundleHeader representing a Header value for teh Bundle
- * 
  * @author <a href="baileyje at gmail.com">John Bailey</a>
  * @version $Revision: 1.1 $
  */
@@ -35,11 +34,10 @@
    private final Object value;
 
    /**
-    * 
     * Create a new BundleHeader.
     * 
-    * @param key
-    * @param value
+    * @param key the key
+    * @param value the value
     */
    public BundleHeader(String key, Object value)
    {

Modified: projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaderBuilder.java
===================================================================
--- projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaderBuilder.java	2008-02-27 14:50:46 UTC (rev 70181)
+++ projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaderBuilder.java	2008-02-27 14:52:01 UTC (rev 70182)
@@ -23,7 +23,6 @@
 
 
 /**
- * 
  * Builds OSGI headers.
  * 
  * @author <a href="baileyje at gmail.com">John Bailey</a>
@@ -33,8 +32,8 @@
 {
    /**
     * Builds the BundleHeader from a metadata object.  
-    * @param 
-    * @return  BundleHeader
+    * @param metaData to build bundle header from
+    * @return BundleHeader the bundle header
     */
    BundleHeader buildHeader(T metaData);
 }

Modified: projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaderBuilders.java
===================================================================
--- projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaderBuilders.java	2008-02-27 14:50:46 UTC (rev 70181)
+++ projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaderBuilders.java	2008-02-27 14:52:01 UTC (rev 70182)
@@ -22,9 +22,9 @@
 package org.jboss.osgi.plugins.facade.helpers;
 
 /**
+ * A BundleHeaderBuilders.
+ * Creates a default set of BundleHeaderBuilders.
  * 
- * A BundleHeaderBuilders - Creates a default set of BundleHeaderBuilders
- * 
  * @author <a href="baileyje at gmail.com">John Bailey</a>
  * @version $Revision: 1.1 $
  */
@@ -32,5 +32,4 @@
 {
    public static ExportPackageHeaderBuilder EXPORT_PACKAGE_BUILDER = new ExportPackageHeaderBuilder();
    public static ImportPackageHeaderBuilder IMPORT_PACKAGE_BUILDER = new ImportPackageHeaderBuilder();
-   
 }

Modified: projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaders.java
===================================================================
--- projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaders.java	2008-02-27 14:50:46 UTC (rev 70181)
+++ projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/BundleHeaders.java	2008-02-27 14:52:01 UTC (rev 70182)
@@ -31,7 +31,6 @@
 import org.jboss.deployers.structure.spi.DeploymentUnit;
 
 /**
- * 
  * Container for Bundle headers providing localization for Manifest headers.
  * 
  * @author <a href="baileyje at gmail.com">John Bailey</a>
@@ -53,8 +52,7 @@
           * REQUIRE_BUNDLE
           * DYNAMICIMPORT_PACKAGE
           * 
-          */
-         
+          */         
       }
       /* TODO
        * 

Modified: projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/DeploymentStage2BundleState.java
===================================================================
--- projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/DeploymentStage2BundleState.java	2008-02-27 14:50:46 UTC (rev 70181)
+++ projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/DeploymentStage2BundleState.java	2008-02-27 14:52:01 UTC (rev 70182)
@@ -25,9 +25,9 @@
 import org.jboss.osgi.plugins.facade.BundleState;
 
 /**
+ * A DeploymentStage2BundleState.
+ * Maps a DeploymentStage to BundleState
  * 
- * A DeploymentStage2BundleState - Maps a DeploymentStage to BundleState
- * 
  * @author <a href="baileyje at gmail.com">John Bailey</a>
  * @version $Revision: 1.1 $
  */
@@ -40,8 +40,8 @@
     * 
     * Create a new DeploymentStage2BundleState.
     * 
-    * @param deploymentStage
-    * @param bundleState
+    * @param deploymentStage the deployment stage
+    * @param bundleState the bundle state
     */
    public DeploymentStage2BundleState(DeploymentStage deploymentStage, BundleState bundleState)
    {

Modified: projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/DeploymentStage2BundleStateMapper.java
===================================================================
--- projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/DeploymentStage2BundleStateMapper.java	2008-02-27 14:50:46 UTC (rev 70181)
+++ projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/DeploymentStage2BundleStateMapper.java	2008-02-27 14:52:01 UTC (rev 70182)
@@ -29,16 +29,16 @@
 import org.jboss.osgi.plugins.facade.BundleState;
 
 /**
+ * A DeploymentStage2BundleStateMapper.
+ * Maps a DeploymentStage to a BundleState
  * 
- * A DeploymentStage2BundleStateMapper - Maps a DeploymentStage to a BundleState
- * 
  * @author <a href="baileyje at gmail.com">John Bailey</a>
  * @version $Revision: 1.1 $
  */
 public class DeploymentStage2BundleStateMapper
 {
+   private static List<DeploymentStage2BundleState> deploymentStage2BundleStates = new ArrayList<DeploymentStage2BundleState>();
 
-   private static List<DeploymentStage2BundleState> deploymentStage2BundleStates = new ArrayList<DeploymentStage2BundleState>();
    static
    {
       deploymentStage2BundleStates.add(new DeploymentStage2BundleState(DeploymentStages.NOT_INSTALLED, BundleState.UNINSTALLED));
@@ -50,8 +50,8 @@
    /**
     * Given a DeploymentStage returns corresponding BundleState
     * 
-    * @param controllerState
-    * @return BundleState
+    * @param controllerState the controller state
+    * @return BundleState the bundle state
     */
    public static BundleState mapBundleState(final DeploymentStage controllerState)
    {

Modified: projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/ExportPackageHeaderBuilder.java
===================================================================
--- projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/ExportPackageHeaderBuilder.java	2008-02-27 14:50:46 UTC (rev 70181)
+++ projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/ExportPackageHeaderBuilder.java	2008-02-27 14:52:01 UTC (rev 70182)
@@ -32,9 +32,9 @@
 import org.osgi.framework.Constants;
 
 /**
+ * A ExportPackageHeaderBuilder.
+ * Builds the Export-Package BundleHeader from CLassLoadingMetaData
  * 
- * A ExportPackageHeaderBuilder - Builds the Export-Package BundleHeader from CLassLoadingMetaData
- * 
  * @author <a href="baileyje at gmail.com">John Bailey</a>
  * @version $Revision: 1.1 $
  */
@@ -42,7 +42,6 @@
 {
    /**
     * Create a new ExportPackageHeaderRetriever.
-    * 
     */
    public ExportPackageHeaderBuilder()
    {
@@ -51,7 +50,7 @@
    /**
     * Iterate through the ClassLoadingMetaData to check for a PackageCapabilities and create Export-Package BundleHeader.
     * 
-    * @param classLoadingMetaData
+    * @param metaData the classloading meta data
     */
    public BundleHeader buildHeader(ClassLoadingMetaData metaData)
    {

Modified: projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/ImportPackageHeaderBuilder.java
===================================================================
--- projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/ImportPackageHeaderBuilder.java	2008-02-27 14:50:46 UTC (rev 70181)
+++ projects/microcontainer/trunk/osgi-int/src/main/org/jboss/osgi/plugins/facade/helpers/ImportPackageHeaderBuilder.java	2008-02-27 14:52:01 UTC (rev 70182)
@@ -32,9 +32,9 @@
 import org.osgi.framework.Constants;
 
 /**
+ * A ImportPackageHeaderRetriever.
+ * Builds Import-Package BundleHeader from ClassLoadingMetaData
  * 
- * A ImportPackageHeaderRetriever - Builds Import-Package BundleHeader from ClassLoadingMetaData
- * 
  * @author <a href="baileyje at gmail.com">John Bailey</a>
  * @version $Revision: 1.1 $
  */
@@ -42,7 +42,6 @@
 {
    /**
     * Create a new ImportPackageHeaderBuilder.
-    * 
     */
    public ImportPackageHeaderBuilder()
    {
@@ -51,7 +50,7 @@
    /**
     * Iterate through the ClassLoadingMetaData to check for a PackageRequirements and build Import-Package header.
     * 
-    * @param classLoadingMetaData
+    * @param metaData the classloading meta data
     */
    public BundleHeader buildHeader(ClassLoadingMetaData metaData)
    {




More information about the jboss-cvs-commits mailing list