incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r1040632 - in /incubator/aries/trunk/subsystem/subsystem-api: ./ src/main/java/org/apache/aries/subsystem/ src/main/java/org/apache/aries/subsystem/spi/
Date Tue, 30 Nov 2010 16:43:23 GMT
Author: linsun
Date: Tue Nov 30 16:43:23 2010
New Revision: 1040632

URL: http://svn.apache.org/viewvc?rev=1040632&view=rev
Log:
(ARIES-498) Sybsystem: subsystem-core updated to use scope instead of composite bundle

Modified:
    incubator/aries/trunk/subsystem/subsystem-api/   (props changed)
    incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/Subsystem.java
    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/spi/ResourceProcessor.java

Propchange: incubator/aries/trunk/subsystem/subsystem-api/
            ('svn:ignore' removed)

Modified: incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/Subsystem.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/Subsystem.java?rev=1040632&r1=1040631&r2=1040632&view=diff
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/Subsystem.java
(original)
+++ incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/Subsystem.java
Tue Nov 30 16:43:23 2010
@@ -193,6 +193,16 @@ public interface Subsystem {
      *
      * @return the content of this subsystem.
      */
-    Collection<Bundle> getConstituents();
+    Collection<Bundle> getBundles();
 
+    //long getParentId();
+    
+    public void updateHeaders(Map<String, String> headers);
+    
+    /**
+     * return the subsystem managed by the subsystem
+     * @return
+     */
+    Collection<Subsystem> getChildrenSubsystems();
+    
 }

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=1040632&r1=1040631&r2=1040632&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
Tue Nov 30 16:43:23 2010
@@ -219,4 +219,20 @@ public interface SubsystemAdmin {
      */
     boolean cancel();
 
+    /**
+     * Gets the corresponding subsystem of the subsystemAdmin service.
+     * 
+     * @return
+     */
+    Subsystem getSubsystem();
+
+    /**
+     * Gets the parent subsystem of the subsystem that is managed by the
+     * subsystem admin.
+     * 
+     * @return
+     */
+    Subsystem getParentSubsystem();
+
+
 }
\ No newline at end of file

Modified: incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/spi/ResourceProcessor.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/spi/ResourceProcessor.java?rev=1040632&r1=1040631&r2=1040632&view=diff
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/spi/ResourceProcessor.java
(original)
+++ incubator/aries/trunk/subsystem/subsystem-api/src/main/java/org/apache/aries/subsystem/spi/ResourceProcessor.java
Tue Nov 30 16:43:23 2010
@@ -13,9 +13,8 @@
  */
 package org.apache.aries.subsystem.spi;
 
-import org.apache.aries.subsystem.Subsystem;
+import org.apache.aries.subsystem.SubsystemAdmin;
 import org.apache.aries.subsystem.SubsystemException;
-import org.osgi.framework.BundleContext;
 
 /**
  * A ResourceProcessor is an object that can manage a given resource type.
@@ -27,7 +26,7 @@ import org.osgi.framework.BundleContext;
  */
 public interface ResourceProcessor {
 
-    Session createSession(BundleContext context);
+    Session createSession(SubsystemAdmin admin);
 
     public static interface Session {
 



Mime
View raw message