Annotation Interface Controller


@Target(TYPE) @Retention(RUNTIME) public @interface Controller
This annotation is used to signify that this object is a Controller with entry points.

Must be on a class also annotated with Component. An EntryPath annotation on the controller class specifies the base path for the entry points.

All HTTP calls find their way here, and these objects handle the incoming request.

Requests are handled via EntryPath-annotated methods.

This object may have dependency singleton Component objects injected into them via ComponentConstructor-annotated constructors. Only one constructor can be annotated with ComponentConstructor.

Author:
Matthew Tropiano
See Also: