Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2011-03-11 11:14:50 -0500
committerGlyn Normington2011-03-11 11:14:50 -0500
commit8f662da298766ba663140514fcd177af1c2098a5 (patch)
tree6267c35e78d041e760b5d113919174f3bf350ef6
parent42923c3a5723f20622ff65856e585445f1f8c5d0 (diff)
downloadorg.eclipse.virgo.kernel-8f662da298766ba663140514fcd177af1c2098a5.tar.gz
org.eclipse.virgo.kernel-8f662da298766ba663140514fcd177af1c2098a5.tar.xz
org.eclipse.virgo.kernel-8f662da298766ba663140514fcd177af1c2098a5.zip
fix head/tail terminology
-rw-r--r--org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/Region.java8
-rw-r--r--org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/internal/BundleIdBasedRegion.java4
2 files changed, 6 insertions, 6 deletions
diff --git a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/Region.java b/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/Region.java
index 376fa778..88fc7f51 100644
--- a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/Region.java
+++ b/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/Region.java
@@ -141,8 +141,8 @@ public interface Region {
Bundle getBundle(String symbolicName, Version version);
/**
- * Connects this region to the given tail region and associates the given {@link RegionFilter} with the connection.
- * This region may then, subject to the region filter, see bundles, packages, and services visible in the tail
+ * Connects this region to the given head region and associates the given {@link RegionFilter} with the connection.
+ * This region may then, subject to the region filter, see bundles, packages, and services visible in the head
* region.
* <p>
* If the filter allows the same bundle symbolic name and version as a bundle already present in this region or a
@@ -152,11 +152,11 @@ public interface Region {
* If the given source region is already connected to the given tail region, then BundleException with exception
* type UNSUPPORTED_OPERATION is thrown.
*
- * @param tailRegion the region to connect this region to
+ * @param headRegion the region to connect this region to
* @param filter a {@link RegionFilter} which controls what is visible across the connection
* @throws BundleException if the connection was not created
*/
- void connectRegion(Region tailRegion, RegionFilter filter) throws BundleException;
+ void connectRegion(Region headRegion, RegionFilter filter) throws BundleException;
/**
* Removes the given bundle from this region. If the given bundle does not belong to this region, this is not an
diff --git a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/internal/BundleIdBasedRegion.java b/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/internal/BundleIdBasedRegion.java
index 569633ef..8ebb78f9 100644
--- a/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/internal/BundleIdBasedRegion.java
+++ b/org.eclipse.virgo.kernel.osgi/src/main/java/org/eclipse/virgo/kernel/osgi/region/internal/BundleIdBasedRegion.java
@@ -185,9 +185,9 @@ final class BundleIdBasedRegion implements Region {
* {@inheritDoc}
*/
@Override
- public void connectRegion(Region tailRegion, RegionFilter filter) throws BundleException {
+ public void connectRegion(Region headRegion, RegionFilter filter) throws BundleException {
synchronized (this.updateMonitor) {
- this.regionDigraph.connect(this, filter, tailRegion);
+ this.regionDigraph.connect(this, filter, headRegion);
}
}

Back to the top