diff options
author | Thomas Watson | 2012-04-17 16:24:05 +0000 |
---|---|---|
committer | Thomas Watson | 2012-04-24 21:34:58 +0000 |
commit | adc79f0719029fe4f25e86958da549b9d7d10366 (patch) | |
tree | 85222e656bf3955ac6870da783e99bab3549a380 /bundles/org.eclipse.equinox.framework/impl/org/eclipse/osgi/container/ModuleDataBase.java | |
parent | 043fb0202dacffe674c7067350b2b132f90c1d69 (diff) | |
download | rt.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.java | 8 |
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: |