|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=SOURCE) @Target(value=TYPE) public @interface RooWebScaffold
Indicates a type that requires ROO controller support.
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.
The following functionality will be introduced in the ITD:
formBackingObject()
property defines the RooEntity
which is exposed through this
controllerThere are two cases in which ROO will not emit one or more of the above artifacts:
RooWebScaffold
annotation value indicates the desired output type should not be emitted (all emit by default)
Required Element Summary | |
---|---|
Class<?> |
formBackingObject
Every controller is responsible for a single form backing object. |
String |
path
All view-related artifacts for a specific controller are stored in a sub-directory under WEB-INF/views/path. |
Optional Element Summary | |
---|---|
boolean |
create
Creates a create() method which allows the creation of a new entity. |
boolean |
delete
Creates a delete() method which deletes an entity for a given id. |
boolean |
exposeFinders
Will scan the formBackingObjects for installed finder methods and expose them when configured. |
boolean |
exposeJson
Will scan the formBackingObjects for org.springframework.roo.addon.json.RooJson annotation and expose json when configured. |
boolean |
update
Creates an update() method which allows alteration of an existing entity. |
Element Detail |
---|
public abstract String path
public abstract Class<?> formBackingObject
public abstract boolean delete
public abstract boolean create
public abstract boolean update
public abstract boolean exposeFinders
public abstract boolean exposeJson
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |