Register the DatabaseUiExecutor for shutdown by the LifecycleManager.

See issue #3612607.
This commit is contained in:
akwizgran
2013-05-16 15:39:41 +01:00
parent 1692e5a695
commit 37e68d5e9e
3 changed files with 19 additions and 16 deletions

View File

@@ -1,6 +1,7 @@
package net.sf.briar.api.android;
import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@@ -13,6 +14,6 @@ import com.google.inject.BindingAnnotation;
* Annotation for injecting the executor for accessing the database from the UI.
*/
@BindingAnnotation
@Target({ FIELD, PARAMETER })
@Target({ FIELD, METHOD, PARAMETER })
@Retention(RUNTIME)
public @interface DatabaseUiExecutor {}