@Retention(value=RUNTIME) @Target(value=TYPE) public @interface SingletonController
Only one instance of this controller will exist in the application, placed in the front controller context. Its dependencies, if any, are re-injected with every new request.
The following are valid declarations of singleton controllers:
@SingletonController public class SomeController { ... }
@SingletonController("some-name") public class SomeController { ... }
NOTE: It is up to the developer to address thread-safety in singleton controllers. The single instance will be accessed simultaneously by multiple threads, and thus there will be concurrency issues to address. The container will not attempt to address those issues.
public abstract String value
Copyright © 2011-2012 MojaveMVC.org