public interface ControllerOperations
extends org.springframework.roo.project.Feature
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_NAME |
| Modifier and Type | Method and Description |
|---|---|
void |
createController(org.springframework.roo.model.JavaType controller,
org.springframework.roo.model.JavaType entity,
org.springframework.roo.model.JavaType service,
String path,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage formattersPackage)
This operation will generate a new controller with the specified information
|
void |
createControllerForAllEntities(org.springframework.roo.model.JavaPackage controllersPackage,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage formattersPackage)
This operation will generate a new controller for every class annotated
with @RooJpaEntity on current project.
|
boolean |
isAddControllerAvailable()
This operation will check if add controllers operation is
available
|
boolean |
isSetupAvailable()
This operation will check if setup operation is available
|
void |
setup(org.springframework.roo.project.maven.Pom module,
ServerProvider appServer)
This operation will setup Spring MVC on generated project.
|
void |
updateController(org.springframework.roo.model.JavaType controller,
ControllerMVCResponseService responseType)
Adds provided response type to existing controller
|
static final String FEATURE_NAME
boolean isSetupAvailable()
void setup(org.springframework.roo.project.maven.Pom module,
ServerProvider appServer)
module - Pom module where Spring MVC should be includedappServer - Server where application should be deployedboolean isAddControllerAvailable()
void createControllerForAllEntities(org.springframework.roo.model.JavaPackage controllersPackage,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage formattersPackage)
controllersPackage - responseType - formattersPackage - void createController(org.springframework.roo.model.JavaType controller,
org.springframework.roo.model.JavaType entity,
org.springframework.roo.model.JavaType service,
String path,
ControllerMVCResponseService responseType,
org.springframework.roo.model.JavaPackage formattersPackage)
controller - entity - service - path - responseType - formattersPackage - void updateController(org.springframework.roo.model.JavaType controller,
ControllerMVCResponseService responseType)
controller - controllerMVCResponseService - Copyright © 2009–2016. All rights reserved.