incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r910469 - in /incubator/aries/trunk/application: application-api/src/main/java/org/apache/aries/application/management/BundleInfo.java application-management/src/main/java/org/apache/aries/application/management/impl/BundleInfoImpl.java
Date Tue, 16 Feb 2010 11:01:25 GMT
Author: gnodet
Date: Tue Feb 16 11:01:24 2010
New Revision: 910469

URL: http://svn.apache.org/viewvc?rev=910469&view=rev
Log:
ARIES-172: BundleInfo should contain imported and exported services

Modified:
    incubator/aries/trunk/application/application-api/src/main/java/org/apache/aries/application/management/BundleInfo.java
    incubator/aries/trunk/application/application-management/src/main/java/org/apache/aries/application/management/impl/BundleInfoImpl.java

Modified: incubator/aries/trunk/application/application-api/src/main/java/org/apache/aries/application/management/BundleInfo.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/application/application-api/src/main/java/org/apache/aries/application/management/BundleInfo.java?rev=910469&r1=910468&r2=910469&view=diff
==============================================================================
--- incubator/aries/trunk/application/application-api/src/main/java/org/apache/aries/application/management/BundleInfo.java
(original)
+++ incubator/aries/trunk/application/application-api/src/main/java/org/apache/aries/application/management/BundleInfo.java
Tue Feb 16 11:01:24 2010
@@ -43,6 +43,12 @@
   
   /** Export-Package */
   public Set<Content> getExportPackage();
+
+  /** Import-Service */
+  public Set<Content> getImportService();
+
+  /** Export-Service */
+  public Set<Content> getExportService();
   
   /** All the headers in the MANIFEST.MF file */
   public Map<String, String> getHeaders();

Modified: incubator/aries/trunk/application/application-management/src/main/java/org/apache/aries/application/management/impl/BundleInfoImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/application/application-management/src/main/java/org/apache/aries/application/management/impl/BundleInfoImpl.java?rev=910469&r1=910468&r2=910469&view=diff
==============================================================================
--- incubator/aries/trunk/application/application-management/src/main/java/org/apache/aries/application/management/impl/BundleInfoImpl.java
(original)
+++ incubator/aries/trunk/application/application-management/src/main/java/org/apache/aries/application/management/impl/BundleInfoImpl.java
Tue Feb 16 11:01:24 2010
@@ -41,6 +41,8 @@
   private Attributes _attributes;
   private Set<Content> _exportPackages = null;
   private Set<Content> _importPackages = null;
+  private Set<Content> _exportServices = null;
+  private Set<Content> _importServices = null;
   private String _location;
   private ApplicationMetadataFactory _applicationMetadataFactory;
   
@@ -55,11 +57,17 @@
   public Set<Content> getExportPackage() {
     if (_exportPackages == null) { 
       _exportPackages = getContentSetFromHeader (_attributes, Constants.EXPORT_PACKAGE);
-    
     }
     return _exportPackages;
   }
   
+  public Set<Content> getExportService() {
+    if (_exportServices == null) {
+      _exportServices = getContentSetFromHeader (_attributes, Constants.EXPORT_SERVICE);
+    }
+    return _exportPackages;
+  }
+
   public Map<String, String> getHeaders() {
     Set<Entry<Object, Object>> headers = _attributes.entrySet();
     Map<String, String> result = new HashMap<String, String>();
@@ -72,11 +80,17 @@
   public Set<Content> getImportPackage() {
     if (_importPackages == null) { 
       _importPackages = getContentSetFromHeader (_attributes, Constants.IMPORT_PACKAGE);
-    
     }
     return _importPackages;
   }
 
+  public Set<Content> getImportService() {
+    if (_importServices == null) {
+      _importServices = getContentSetFromHeader (_attributes, Constants.IMPORT_SERVICE);
+    }
+    return _importServices;
+  }
+
   public String getLocation() {
     return _location;
   }



Mime
View raw message