Memnon is a Java Process framework inspired by Ruby on Rails. It is optimized to be sustainable, productive, and familiar for Java developers.
- simple: simple configuration is required to develop Business Process applications, and some conventions are overridable.
-
see memnon/memnon/src/test/ demo.
-
Main class is org.memnon.server.Server
public class RouteConfig extends AbstractRouteConfig {
public void init(AppContext appContext) {
route("/hello").to(HelloController.class).action("hello");
route("/{action}/{controller}/{id}");
route("/package/package/{action}/{controller}/{id}");
}
}
public class AppControllerConfig extends AbstractControllerConfig {
public void init(AppContext context) {
addGlobalFilters(new TimingFilter());
add(new TimingFilter()).to(HelloController.class).forActions("hello");
}
}
public class HelloController extends AppController {
@GET
public void hello() {
JsonResponse res = new JsonResponse();
res.setStatus(200);
res.setResponse(String.valueOf(Math.random()));
Context.setControllerResponse(res);
}
}
serverHost=0.0.0.0
serverPort=9998
activeReload=false
rootPackage=org.memnon.controllers
rootConfig=org.memnon.config.RouteConfig
controllerConfig=org.memnon.config.AppControllerConfig