Author: jbonofre
Date: Fri Jun 15 14:47:37 2012
New Revision: 1350643

URL: http://svn.apache.org/viewvc?rev=1350643&view=rev
Log:
[KARAF-1546] Update the features MBean

Modified:
    
karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/FeaturesServiceMBean.java
    
karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/internal/FeaturesService.java

Modified: 
karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/FeaturesServiceMBean.java
URL: 
http://svn.apache.org/viewvc/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/FeaturesServiceMBean.java?rev=1350643&r1=1350642&r2=1350643&view=diff
==============================================================================
--- 
karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/FeaturesServiceMBean.java
 (original)
+++ 
karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/FeaturesServiceMBean.java
 Fri Jun 15 14:47:37 2012
@@ -26,8 +26,12 @@ public interface FeaturesServiceMBean {
 
     void addRepository(String url) throws Exception;
 
+    void addRepository(String url, boolean install) throws Exception;
+
     void removeRepository(String url) throws Exception;
 
+    void removeRepository(String url, boolean uninstall) throws Exception;
+
     void installFeature(String name) throws Exception;
 
     void installFeature(String name, String version) throws Exception;

Modified: 
karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/internal/FeaturesService.java
URL: 
http://svn.apache.org/viewvc/karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/internal/FeaturesService.java?rev=1350643&r1=1350642&r2=1350643&view=diff
==============================================================================
--- 
karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/internal/FeaturesService.java
 (original)
+++ 
karaf/trunk/features/core/src/main/java/org/apache/karaf/features/management/internal/FeaturesService.java
 Fri Jun 15 14:47:37 2012
@@ -130,10 +130,18 @@ public class FeaturesService extends Sta
         featuresService.addRepository(new URI(uri));
     }
 
+    public void addRepository(String uri, boolean install) throws Exception {
+        featuresService.addRepository(new URI(uri), install);
+    }
+
     public void removeRepository(String uri) throws Exception {
         featuresService.removeRepository(new URI(uri));
     }
 
+    public void removeRepository(String uri, boolean uninstall) throws 
Exception {
+        featuresService.removeRepository(new URI(uri), uninstall);
+    }
+
     public void installFeature(String name) throws Exception {
         featuresService.installFeature(name);
     }


Reply via email to