diff --git a/source/java/org/alfresco/web/api/APIService.java b/source/java/org/alfresco/web/api/APIService.java index 77f0788d18..6d7f967963 100644 --- a/source/java/org/alfresco/web/api/APIService.java +++ b/source/java/org/alfresco/web/api/APIService.java @@ -28,6 +28,20 @@ import javax.servlet.ServletContext; public interface APIService { + /** + * Initialise the Service + * + * @param context + */ + public void init(ServletContext context); + + /** + * Gets the name of this service + * + * @return service name + */ + public String getName(); + /** * Gets the required authentication level for execution of this service * @@ -48,7 +62,7 @@ public interface APIService * @return HTTP uri */ public String getHttpUri(); - + /** * Execute service * @@ -59,7 +73,4 @@ public interface APIService public void execute(APIRequest req, APIResponse res) throws IOException; - public String getName(); - - public void init(ServletContext sc); }