|
Project Information
Members
Featured
Downloads
Links
|
Scenic3 is a liberally to wrap Slim3's Controller. If you don't feel good Slim3 because you must create a controller class each an action method. Scenic3 create controller classes each action methods on PageClass by APT when compile. And analyze request pattern to create a MatcherClass (this class is glue between PageClass and Slim3's Controller class). So, Scenic3 don't setup when App Engine's instance is spin-up. Page class is classloaded by Reflection API when requested, so have a little overhead of classload compared with Slim3.
Release Notes
Futures
Samples@Page("/")
public class FrontPage extends ScenicPage {
// /view/100 /view/200
@ActionPath("view/{id}")
public Navigation view(@Var("id") String id) {
super.request.setAttribute("x", id);
return forward("/view.jsp");
}
// /
@Default
public Navigation index() {
return forward("/index.jsp");
}
}
|