You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by li...@apache.org on 2010/11/30 17:36:51 UTC

svn commit: r1040624 - /incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemEvent.java

Author: linsun
Date: Tue Nov 30 16:36:50 2010
New Revision: 1040624

URL: http://svn.apache.org/viewvc?rev=1040624&view=rev
Log:
revert r1021324 in subsystem-api project since Graham told me he doesn't need the Future stuff anyway

Modified:
    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/SubsystemEvent.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/SubsystemEvent.java?rev=1040624&r1=1040623&r2=1040624&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 Tue Nov 30 16:36:50 2010
@@ -14,7 +14,6 @@
 package org.apache.aries.subsystem;
 
 import java.io.InputStream;
-import java.net.URL;
 
 /**
  * Event sent to listeners when an operation has been performed on a subsystem.
@@ -66,25 +65,13 @@ public class SubsystemEvent {
         /**
          * Event type used to indicate a subsystem is stopping.
          */
-        STOPPING,
-        
-        /**
-         * Event type used to indicate that the operation failed (e.g. an exception was thrown during installation).
-         */
-        FAILED,
-        
-        /**
-         * Event type used to indicate that the operations was cancelled (e.g. an install was cancelled).
-         */
-        CANCELLED
+        STOPPING
     }
     private final Type type;
 
     private final long timestamp;
 
     private final Subsystem subsystem;
-    
-    private final String location;
 
     /**
      * Constructs a new subsystem event.
@@ -97,21 +84,6 @@ public class SubsystemEvent {
         this.type = type;
         this.timestamp = timestamp;
         this.subsystem = subsystem;
-        this.location = subsystem.getLocation();
-    }
-
-    /**
-     * Constructs a new subsystem event.
-     * 
-     * @param type The type of the event.  For example, INSTALLED.  See {@link SubsystemEvent.Type} for the list of event types.
-     * @param timestamp The timestamp for the event.
-     * @param location The location of the subsystem for failure/cancellation cases.
-     */
-    public SubsystemEvent(Type type, long timestamp, String location) {
-        this.type = type;
-        this.timestamp = timestamp;
-        this.location = location;
-        this.subsystem = null;
     }
 
     /**
@@ -140,13 +112,4 @@ public class SubsystemEvent {
         return subsystem;
     }
 
-    /**
-     * Gets the location for the subsystem.
-     * 
-     * @return the location of the subsystem.
-     */
-    public String getLocation() {
-        return location;
-    }
-
 }