felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r916502 - in /felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository: RequirementImpl.java ResourceImpl.java
Date Fri, 26 Feb 2010 00:10:33 GMT
Author: gnodet
Date: Fri Feb 26 00:10:32 2010
New Revision: 916502

URL: http://svn.apache.org/viewvc?rev=916502&view=rev
Log:
FELIX-2127: improve explanations by adding a way to link the requirement to the requesting
resource

Modified:
    felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
    felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java

Modified: felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java?rev=916502&r1=916501&r2=916502&view=diff
==============================================================================
--- felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
(original)
+++ felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
Fri Feb 26 00:10:32 2010
@@ -22,9 +22,11 @@
 import org.osgi.framework.InvalidSyntaxException;
 import org.osgi.service.obr.Capability;
 import org.osgi.service.obr.Requirement;
+import org.osgi.service.obr.Resource;
 
 public class RequirementImpl implements Requirement
 {
+    private Resource m_resource;
     private String m_name = null;
     private boolean m_extend = false;
     private boolean m_multiple = false;
@@ -36,6 +38,16 @@
     {
     }
 
+    public Resource getResource()
+    {
+        return m_resource;
+    }
+
+    public void setResource(Resource resource)
+    {
+        m_resource = resource;
+    }
+
     public synchronized String getName()
     {
         return m_name;

Modified: felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java?rev=916502&r1=916501&r2=916502&view=diff
==============================================================================
--- felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java
(original)
+++ felix/trunk/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java
Fri Feb 26 00:10:32 2010
@@ -135,6 +135,7 @@
 
     protected void addRequire(Requirement req)
     {
+        ((RequirementImpl) req).setResource(this);
         m_reqList.add(req);
     }
 



Mime
View raw message