Implement Service interface rather than extending it.

Whether or not a class needs to run as a service is an implementation decision.
This commit is contained in:
akwizgran
2016-01-19 15:50:29 +00:00
parent 2cd3a3a4f0
commit 33ef09a6bf
12 changed files with 90 additions and 72 deletions

View File

@@ -1,9 +1,8 @@
package org.briarproject.api.sync;
import org.briarproject.api.db.Metadata;
import org.briarproject.api.lifecycle.Service;
public interface MessageValidator extends Service {
public interface MessageValidator {
/**
* Validates the given message and returns its metadata if the message

View File

@@ -1,12 +1,10 @@
package org.briarproject.api.sync;
import org.briarproject.api.lifecycle.Service;
/**
* Responsible for managing message validators and passing them messages to
* validate.
*/
public interface ValidationManager extends Service {
public interface ValidationManager {
/** Sets the message validator for the given client. */
void setMessageValidator(ClientId c, MessageValidator v);