incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r929742 - in /incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem: SubsystemAdmin.java SubsystemConstants.java SubsystemEvent.java
Date Wed, 31 Mar 2010 23:06:37 GMT
Author: gnodet
Date: Wed Mar 31 23:06:37 2010
New Revision: 929742

URL: http://svn.apache.org/viewvc?rev=929742&view=rev
Log:
[subsystem] small api modifications (add an uninstallForced method and remove the parent class
on SubsystemEvent

Modified:
    incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemAdmin.java
    incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemConstants.java
    incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemEvent.java

Modified: incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemAdmin.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemAdmin.java?rev=929742&r1=929741&r2=929742&view=diff
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemAdmin.java
(original)
+++ incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemAdmin.java
Wed Mar 31 23:06:37 2010
@@ -86,6 +86,14 @@ public interface SubsystemAdmin {
     void uninstall(Subsystem subsystem) throws SubsystemException;
 
     /**
+     * Force the uninstallation of a subsystem.
+     * Any errors will be ignored.
+     *
+     * @param subsystem
+     */
+    void uninstallForced(Subsystem subsystem);
+
+    /**
      * Abort the current operation.
      * The installing thread must throw a SubsystemException if the operation
      * has actually been canceled and rolled back before terminating.

Modified: incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemConstants.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemConstants.java?rev=929742&r1=929741&r2=929742&view=diff
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemConstants.java
(original)
+++ incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemConstants.java
Wed Mar 31 23:06:37 2010
@@ -23,18 +23,18 @@ public class SubsystemConstants {
     }
 
     public static final String SUBSYSTEM_MANIFESTVERSION = "Subsystem-ManifestVersion";
-    public static final String SUBSYSTEM_SYMBOLICNAME = "Subsystem-SymbolicName";
-    public static final String SUBSYSTEM_VERSION = "Subsystem-Version";
-    public static final String SUBSYSTEM_NAME = "Subsystem-Name";
-    public static final String SUBSYSTEM_DESCRIPTION = "Subsystem-Description";
-    public static final String SUBSYSTEM_CONTENT = "Subsystem-Content";
-    public static final String SUBSYSTEM_IMPORTPACKAGE = "Subsystem-ImportPackage";
-    public static final String SUBSYSTEM_EXPORTPACKAGE = "Subsystem-ExportPackage";
-    public static final String SUBSYSTEM_IMPORTSERVICE = "Subsystem-ImportService";
-    public static final String SUBSYSTEM_EXPORTSERVICE = "Subsystem-ExportService";
-    public static final String SUBSYSTEM_REQUIREBUNDLE = "Subsystem-RequireBundle";
-    public static final String SUBSYSTEM_LOCALIZATION = "Subsystem-Localization";
-    public static final String SUBSYSTEM_UPDATELOCATION = "Subsystem-UpdateLocation";
+    public static final String SUBSYSTEM_SYMBOLICNAME    = "Subsystem-SymbolicName";
+    public static final String SUBSYSTEM_VERSION         = "Subsystem-Version";
+    public static final String SUBSYSTEM_NAME            = "Subsystem-Name";
+    public static final String SUBSYSTEM_DESCRIPTION     = "Subsystem-Description";
+    public static final String SUBSYSTEM_CONTENT         = "Subsystem-Content";
+    public static final String SUBSYSTEM_IMPORTPACKAGE   = "Subsystem-ImportPackage";
+    public static final String SUBSYSTEM_EXPORTPACKAGE   = "Subsystem-ExportPackage";
+    public static final String SUBSYSTEM_IMPORTSERVICE   = "Subsystem-ImportService";
+    public static final String SUBSYSTEM_EXPORTSERVICE   = "Subsystem-ExportService";
+    public static final String SUBSYSTEM_REQUIREBUNDLE   = "Subsystem-RequireBundle";
+    public static final String SUBSYSTEM_LOCALIZATION    = "Subsystem-Localization";
+    public static final String SUBSYSTEM_UPDATELOCATION  = "Subsystem-UpdateLocation";
 
     /*
     String APPLICATION_SYMBOLICNAME = "Application-SymbolicName";

Modified: incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemEvent.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemEvent.java?rev=929742&r1=929741&r2=929742&view=diff
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemEvent.java
(original)
+++ incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemEvent.java
Wed Mar 31 23:06:37 2010
@@ -18,7 +18,7 @@ import java.util.EventObject;
 /**
  * Event sent to listeners when an operation has been performed on a subsystem.
  */
-public class SubsystemEvent extends EventObject {
+public class SubsystemEvent {
 
     public enum Type {
         INSTALLED,
@@ -37,7 +37,6 @@ public class SubsystemEvent extends Even
     private final Subsystem subsystem;
 
     public SubsystemEvent(Type type, long timestamp, Subsystem subsystem) {
-        super(subsystem);
         this.type = type;
         this.timestamp = timestamp;
         this.subsystem = subsystem;



Mime
View raw message