[jboss-cvs] JBossAS SVN: r90831 - projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jul 6 07:55:05 EDT 2009


Author: thomas.diesler at jboss.com
Date: 2009-07-06 07:55:05 -0400 (Mon, 06 Jul 2009)
New Revision: 90831

Modified:
   projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service/BundleInfo.java
   projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service/DeployerService.java
Log:
[JBOSGI-66] Support bundle deployment through web console

Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service/BundleInfo.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service/BundleInfo.java	2009-07-06 09:49:21 UTC (rev 90830)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service/BundleInfo.java	2009-07-06 11:55:05 UTC (rev 90831)
@@ -35,24 +35,11 @@
 public interface BundleInfo
 {
    /**
-    * The state of the bundle
-    */
-   enum State
-   {
-      NEW, INSTALLED, ACTIVE, UNINSTALLED
-   }
-
-   /**
     * Get the bundle location
     */
    URL getLocation();
 
    /**
-    * Get the bundle state
-    */
-   State getState();
-
-   /**
     * Get the bundle symbolic name
     */
    String getSymbolicName();

Modified: projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service/DeployerService.java
===================================================================
--- projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service/DeployerService.java	2009-07-06 09:49:21 UTC (rev 90830)
+++ projects/jboss-osgi/trunk/spi/src/main/java/org/jboss/osgi/spi/service/DeployerService.java	2009-07-06 11:55:05 UTC (rev 90831)
@@ -26,6 +26,7 @@
 import javax.management.ObjectName;
 
 import org.jboss.osgi.spi.management.ObjectNameFactory;
+import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleException;
 
 //$Id$
@@ -44,6 +45,17 @@
    ObjectName MBEAN_DEPLOYER_SERVICE = ObjectNameFactory.create("jboss.osgi:service=DeployerService");
 
    /**
+    * Get the bundle info for the given bundle URL
+    */
+   BundleInfo getBundleInfo(URL url) throws BundleException;
+   
+   /**
+    * Get the installed bundle for the given bundle info 
+    * @return null, if there is no bundle that matches the given bundle info
+    */
+   Bundle getBundle(BundleInfo info) throws BundleException;
+   
+   /**
     * Deploy an array of bundles
     */
    void deploy(BundleInfo[] bundles) throws BundleException;




More information about the jboss-cvs-commits mailing list