projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove Service interface.
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
database
/
Database.java
diff --git
a/src/main/java/net/pterodactylus/sone/database/Database.java
b/src/main/java/net/pterodactylus/sone/database/Database.java
index
4bf863f
..
3fd7e2b
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/database/Database.java
+++ b/
src/main/java/net/pterodactylus/sone/database/Database.java
@@
-17,8
+17,6
@@
package net.pterodactylus.sone.database;
package net.pterodactylus.sone.database;
-import com.google.common.util.concurrent.Service;
-
/**
* Database for Sone data. This interface combines the various provider, store,
* and builder factory interfaces into a single interface and adds some methods
/**
* Database for Sone data. This interface combines the various provider, store,
* and builder factory interfaces into a single interface and adds some methods
@@
-26,14
+24,9
@@
import com.google.common.util.concurrent.Service;
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
*
* @author <a href="mailto:bombe@pterodactylus.net">David ‘Bombe’ Roden</a>
*/
-public interface Database extends
Service, PostDatabase, PostReplyDatabase, Album
Database {
+public interface Database extends
IdentityDatabase, SoneDatabase, PostDatabase, PostReplyDatabase, AlbumDatabase, Image
Database {
- /**
- * Saves the database.
- *
- * @throws DatabaseException
- * if an error occurs while saving
- */
- public void save() throws DatabaseException;
+ void start();
+ void stop();
}
}