Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2012-04-17 16:24:05 +0000
committerThomas Watson2012-04-24 21:34:58 +0000
commitadc79f0719029fe4f25e86958da549b9d7d10366 (patch)
tree85222e656bf3955ac6870da783e99bab3549a380 /bundles/org.eclipse.equinox.framework/impl/org/eclipse/osgi/container/ModuleDataBase.java
parent043fb0202dacffe674c7067350b2b132f90c1d69 (diff)
downloadrt.equinox.framework-adc79f0719029fe4f25e86958da549b9d7d10366.tar.gz
rt.equinox.framework-adc79f0719029fe4f25e86958da549b9d7d10366.tar.xz
rt.equinox.framework-adc79f0719029fe4f25e86958da549b9d7d10366.zip
Allow extending classes to get the next id.
Diffstat (limited to 'bundles/org.eclipse.equinox.framework/impl/org/eclipse/osgi/container/ModuleDataBase.java')
-rw-r--r--bundles/org.eclipse.equinox.framework/impl/org/eclipse/osgi/container/ModuleDataBase.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.framework/impl/org/eclipse/osgi/container/ModuleDataBase.java b/bundles/org.eclipse.equinox.framework/impl/org/eclipse/osgi/container/ModuleDataBase.java
index a500ce12f..a255f7fc7 100644
--- a/bundles/org.eclipse.equinox.framework/impl/org/eclipse/osgi/container/ModuleDataBase.java
+++ b/bundles/org.eclipse.equinox.framework/impl/org/eclipse/osgi/container/ModuleDataBase.java
@@ -330,6 +330,14 @@ public abstract class ModuleDataBase {
}
/**
+ * Returns the next module ID
+ * @return the next module ID
+ */
+ protected long getNextId() {
+ return nextId.get();
+ }
+
+ /**
* Returns the current timestamp of this database.
* The timestamp is incremented any time a modification
* is made to this database. For example:

Back to the top