mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 12:49:55 +01:00
Database refactoring to fix injection problems.
This commit is contained in:
15
api/net/sf/briar/api/db/DatabaseDirectory.java
Normal file
15
api/net/sf/briar/api/db/DatabaseDirectory.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package net.sf.briar.api.db;
|
||||
|
||||
import static java.lang.annotation.ElementType.PARAMETER;
|
||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import com.google.inject.BindingAnnotation;
|
||||
|
||||
/** Annotation for injecting the directory where the database is stored. */
|
||||
@BindingAnnotation
|
||||
@Target({ PARAMETER })
|
||||
@Retention(RUNTIME)
|
||||
public @interface DatabaseDirectory {}
|
||||
15
api/net/sf/briar/api/db/DatabaseMaxSize.java
Normal file
15
api/net/sf/briar/api/db/DatabaseMaxSize.java
Normal file
@@ -0,0 +1,15 @@
|
||||
package net.sf.briar.api.db;
|
||||
|
||||
import static java.lang.annotation.ElementType.PARAMETER;
|
||||
import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.Target;
|
||||
|
||||
import com.google.inject.BindingAnnotation;
|
||||
|
||||
/** Annotation for injecting the maximum size in bytes of the database. */
|
||||
@BindingAnnotation
|
||||
@Target({ PARAMETER })
|
||||
@Retention(RUNTIME)
|
||||
public @interface DatabaseMaxSize {}
|
||||
Reference in New Issue
Block a user