Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2014-02-21 21:44:22 +0000
committerThomas Watson2014-02-21 21:44:22 +0000
commit10d59fd586440c09b9f0ab7af79c3650c81a8cfa (patch)
treef13793e7b605fc244fb01d5cc9735576ea08208f /bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java
parentc48f9c82ccc057bc15a37ed9be7d059803c390b2 (diff)
downloadrt.equinox.framework-10d59fd586440c09b9f0ab7af79c3650c81a8cfa.tar.gz
rt.equinox.framework-10d59fd586440c09b9f0ab7af79c3650c81a8cfa.tar.xz
rt.equinox.framework-10d59fd586440c09b9f0ab7af79c3650c81a8cfa.zip
Bug 428803 - Clean up container package
Diffstat (limited to 'bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java9
1 files changed, 7 insertions, 2 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java
index 5482159f5..57ed77d82 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleDatabase.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2012, 2013 IBM Corporation and others.
+ * Copyright (c) 2012, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -131,6 +131,7 @@ public class ModuleDatabase {
/**
* Constructs a new empty database.
+ * @param adaptor the module container adaptor
*/
public ModuleDatabase(ModuleContainerAdaptor adaptor) {
this.adaptor = adaptor;
@@ -727,6 +728,7 @@ public class ModuleDatabase {
}
/**
+ * Acquires the read lock for this database.
* @see ReadLock#lock()
*/
public final void readLock() {
@@ -734,6 +736,7 @@ public class ModuleDatabase {
}
/**
+ * Acquires the write lock for this database.
* Same as {@link WriteLock#lock()} except an illegal
* state exception is thrown if the current thread holds
* one or more read locks.
@@ -751,6 +754,7 @@ public class ModuleDatabase {
}
/**
+ * Attempts to release the read lock for this database.
* @see ReadLock#unlock()
*/
public final void readUnlock() {
@@ -758,6 +762,7 @@ public class ModuleDatabase {
}
/**
+ * Attempts to release the write lock for this database.
* @see WriteLock#unlock()
*/
public final void writeUnlock() {
@@ -844,7 +849,7 @@ public class ModuleDatabase {
/**
* Loads information into this database from the input data stream. This data
- * base must be empty and never been modified (the {@link #getRevisionsTimestamp() timestamp} is zero.
+ * base must be empty and never been modified (the {@link #getRevisionsTimestamp() timestamp} is zero).
* All stored modules are loaded into this database. If the input stream contains
* wiring then it will also be loaded into this database.
* <p>

Back to the top