Folded ReadWriteLockDatabaseComponent into its parent.

This commit is contained in:
akwizgran
2011-09-19 15:29:40 +01:00
parent 7ef44fbab1
commit 44c8f9ceaa
5 changed files with 1255 additions and 1282 deletions

View File

@@ -264,8 +264,7 @@ interface Database<T> {
Rating getRating(T txn, AuthorId a) throws DbException;
/**
* Returns the sendability score of the given message. Group messages with
* sendability scores greater than zero are eligible to be sent to contacts.
* Returns the sendability score of the given group message.
* <p>
* Locking: messages read.
*/

File diff suppressed because it is too large Load Diff

View File

@@ -12,8 +12,8 @@ public class DatabaseModule extends AbstractModule {
@Override
protected void configure() {
bind(Database.class).to(H2Database.class);
bind(DatabaseComponent.class).to(
ReadWriteLockDatabaseComponent.class).in(Singleton.class);
bind(DatabaseComponent.class).to(DatabaseComponentImpl.class).in(
Singleton.class);
bind(Password.class).annotatedWith(DatabasePassword.class).toInstance(
new Password() {
public char[] getPassword() {

File diff suppressed because it is too large Load Diff