perwendel/spark — pull request #10 by wendal (2012-01-06 04:56:16+00:00)
Title: Plugin for Spark -- use spark with annotation

Plugin for Spark -- use spark with annotation

public class UserModule{

@URL(type="post",value="do/login")
public void login(Request request, Response response) {
//XXXXX
}

@URL(type="post",value="do/login")
public String logout() { //without req/resp is OK too
//XXXXX
return "{ok : true}"
}

}