commit | f49ddd743789f9cb478232a2cd1268eba0c0e2f5 | [log] [tgz] |
---|---|---|
author | Guillaume Nodet <gnodet@apache.org> | Thu Feb 25 16:58:58 2010 +0000 |
committer | Guillaume Nodet <gnodet@apache.org> | Thu Feb 25 16:58:58 2010 +0000 |
tree | 3133d2f532f94ea4a0f00331d633e73f81d7b97c | |
parent | 480383c569786c09df2a74a82a115f957bb446d3 [diff] |
[bundlerepository] add toString() method to help debugging git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@916349 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/CapabilityImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/CapabilityImpl.java index 20d596a..2c387c1 100644 --- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/CapabilityImpl.java +++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/CapabilityImpl.java
@@ -67,4 +67,9 @@ { m_map.put(name.toLowerCase(), value); } + + public String toString() + { + return m_name + ":" + m_map.toString(); + } } \ No newline at end of file
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalResourceImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalResourceImpl.java index 785efec..dd30923 100644 --- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalResourceImpl.java +++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/LocalResourceImpl.java
@@ -342,4 +342,9 @@ addCapability(cap); } } + + public String toString() + { + return m_bundle.toString(); + } }
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java index fcc1ae9..df44aea 100644 --- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java +++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/RequirementImpl.java
@@ -125,6 +125,6 @@ public synchronized String toString() { - return m_name + ": " + getFilter(); + return m_name + ":" + getFilter(); } } \ No newline at end of file
diff --git a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java index 6cfda8b..4b06b74 100644 --- a/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java +++ b/bundlerepository/src/main/java/org/apache/felix/bundlerepository/ResourceImpl.java
@@ -275,4 +275,9 @@ } } } + + public String toString() + { + return getId(); + } } \ No newline at end of file