@Retention(value=RUNTIME) @Target(value=TYPE) public @interface Init
This annotation must be used only with singleton controllers. The singleton controller instance will be created at startup if it is annotated with this annotation.
As an example, consider the following controller:
@Init @SingletonController public class StartupController { }
The controller above will be instantiated during initialization of the org.mojavemvc.FrontController servlet.
Copyright © 2011-2012 MojaveMVC.org