geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwo...@apache.org
Subject svn commit: r1083684 - /geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationGBean.java
Date Mon, 21 Mar 2011 06:26:58 GMT
Author: rwonly
Date: Mon Mar 21 06:26:58 2011
New Revision: 1083684

URL: http://svn.apache.org/viewvc?rev=1083684&view=rev
Log:
GERONIMO-5861 Update a bundle within an EBA (throw IllegalArgumentException in update method)

Modified:
    geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationGBean.java

Modified: geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationGBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationGBean.java?rev=1083684&r1=1083683&r2=1083684&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationGBean.java
(original)
+++ geronimo/server/trunk/plugins/aries/geronimo-aries-builder/src/main/java/org/apache/geronimo/aries/builder/ApplicationGBean.java
Mon Mar 21 06:26:58 2011
@@ -125,10 +125,6 @@ public class ApplicationGBean implements
         }
         return ids;
     }
-
-    protected ApplicationState getApplicationState() {
-        return applicationState;
-    }
     
     public String getApplicationContentBundleSymbolicName(long bundleId){
         for (Bundle content : applicationBundles){
@@ -163,6 +159,8 @@ public class ApplicationGBean implements
             } finally{
                 context.ungetService(reference);
             }
+        } else {
+            throw new IllegalArgumentException("Could not find the bundle with id: " + bundleId
+ "in the Application content");
         }
     }
     
@@ -177,6 +175,10 @@ public class ApplicationGBean implements
     protected Set<Bundle> getApplicationContent() {
         return new HashSet<Bundle>(applicationBundles);
     }
+
+    protected ApplicationState getApplicationState() {
+        return applicationState;
+    }
     
     private void install() throws Exception {
 



Mime
View raw message