geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r1387282 - /geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ResolverErrorAnalyzer.java
Date Tue, 18 Sep 2012 18:00:33 GMT
Author: gawor
Date: Tue Sep 18 18:00:33 2012
New Revision: 1387282

URL: http://svn.apache.org/viewvc?rev=1387282&view=rev
Log:
use selected exports (instead of all exports) if bundle is resolved to check for satisifed
wires

Modified:
    geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ResolverErrorAnalyzer.java

Modified: geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ResolverErrorAnalyzer.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ResolverErrorAnalyzer.java?rev=1387282&r1=1387281&r2=1387282&view=diff
==============================================================================
--- geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ResolverErrorAnalyzer.java
(original)
+++ geronimo/server/branches/3.0/plugins/aries/geronimo-aries/src/main/java/org/apache/geronimo/aries/ResolverErrorAnalyzer.java
Tue Sep 18 18:00:33 2012
@@ -162,7 +162,7 @@ public class ResolverErrorAnalyzer {
     
     private static ExportPackageDescription isSatisfied(ImportPackageSpecification importPackageSpecification,
Collection<BundleDescription> bundleDescriptions) {
         for (BundleDescription b : bundleDescriptions) {
-            ExportPackageDescription[] exportedPackages = b.getExportPackages();
+            ExportPackageDescription[] exportedPackages = (b.isResolved()) ? b.getSelectedExports()
: b.getExportPackages();
             if (exportedPackages != null) {
                 for (ExportPackageDescription exportedPackage : exportedPackages) {
                     if (importPackageSpecification.isSatisfiedBy(exportedPackage)) {



Mime
View raw message