@Retention(value=SOURCE) @Target(value=TYPE) public @interface RooController
This annotation will cause ROO to produce code that would typically appear in MVC controllers. Importantly, such code does NOT depend on any singletons and is intended to safely serialise. In the current release this code will be emitted to an ITD.
| Modifier and Type | Required Element and Description |
|---|---|
Class<?> |
entity
Every controller is responsible for a single entity.
|
String |
path
This parameter defines the @RequestMapping of annotated Controller
|
Class<?> |
service
Every controller should be related with a service, to be able to work with
negotiation layer.
|
public abstract Class<?> entity
public abstract Class<?> service
public abstract String path
Copyright © 2009–2016. All rights reserved.