@Service public class JSONMVCResponseService extends Object implements ControllerMVCResponseService
| Constructor and Description |
|---|
JSONMVCResponseService() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
void |
annotate(org.springframework.roo.model.JavaType controller)
This operation annotates a controller with the JSON annotation
|
org.springframework.roo.model.JavaType |
getAnnotation()
This operation returns the annotation type @RooJSON
|
String |
getControllerNameModifier()
Return a string which should be added to controller name to identify this
kind of Response.
|
org.springframework.roo.model.JavaType |
getMainController()
This operation returns the main controller generated by implementation.
|
org.springframework.roo.model.JavaType |
getMainControllerAnnotation()
This operation returns the annotation type that identifies the main
controller generated by implementation
|
String |
getName()
This operation returns the Feature name.
|
String |
getResponseType()
This operation returns the JSON response type.
|
boolean |
hasResponseType(org.springframework.roo.model.JavaType controller)
This operation will check if some controller has the @RooJSON annotation
|
void |
install(org.springframework.roo.project.maven.Pom module)
This operation will install all the necessary items to be able to use
JSON response type.
|
boolean |
isInstalledInModule(String moduleName)
This operation checks if this feature is installed in module.
|
boolean |
providesViews()
Informs if this response type will provide views
|
boolean |
requiresJsonDeserializer()
Informs if response type requires Json Deserializer classes
|
boolean |
requiresJsonMixin()
Informs if response type requires Json Mixin classes
|
protected void activate(org.osgi.service.component.ComponentContext context)
public String getName()
getName in interface org.springframework.roo.project.Featurepublic boolean isInstalledInModule(String moduleName)
isInstalledInModule in interface org.springframework.roo.project.Featurepublic String getResponseType()
getResponseType in interface ControllerMVCResponseServicepublic org.springframework.roo.model.JavaType getAnnotation()
getAnnotation in interface ControllerMVCResponseServicepublic void annotate(org.springframework.roo.model.JavaType controller)
annotate in interface ControllerMVCResponseServicecontroller - JavaType with the controller to be annotated.public boolean hasResponseType(org.springframework.roo.model.JavaType controller)
hasResponseType in interface ControllerMVCResponseServicecontroller - JavaType with controller to checkpublic void install(org.springframework.roo.project.maven.Pom module)
install in interface ControllerMVCResponseServicemodule - Pom with the module where this response type should
be installed.public org.springframework.roo.model.JavaType getMainControllerAnnotation()
ControllerMVCResponseServicegetMainControllerAnnotation in interface ControllerMVCResponseServicepublic org.springframework.roo.model.JavaType getMainController()
ControllerMVCResponseServicegetMainController in interface ControllerMVCResponseServicepublic String getControllerNameModifier()
ControllerMVCResponseServicegetControllerNameModifier in interface ControllerMVCResponseServicepublic boolean requiresJsonDeserializer()
ControllerMVCResponseServicerequiresJsonDeserializer in interface ControllerMVCResponseServiceRooDeserializerpublic boolean requiresJsonMixin()
ControllerMVCResponseServicerequiresJsonMixin in interface ControllerMVCResponseServiceRooJsonMixinpublic boolean providesViews()
ControllerMVCResponseServiceprovidesViews in interface ControllerMVCResponseServiceCopyright © 2009–2017. All rights reserved.