@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 |
addFinders(org.springframework.roo.model.JavaType controller,
List<String> finders)
This operation adds finders to the @RooJSON annotation.
|
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
|
org.springframework.roo.process.manager.FileManager |
getFileManager() |
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.
|
org.springframework.roo.project.PathResolver |
getPathResolver() |
org.springframework.roo.project.ProjectOperations |
getProjectOperations() |
String |
getResponseType()
This operation returns the JSON response type.
|
org.springframework.roo.classpath.TypeLocationService |
getTypeLocationService() |
org.springframework.roo.classpath.TypeManagementService |
getTypeManagementService() |
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.
|
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 void addFinders(org.springframework.roo.model.JavaType controller,
List<String> finders)
addFinders in interface ControllerMVCResponseServicecontroller - JavaType with the controller to be updated with
the finders.finders - List with finder names to be added.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 org.springframework.roo.project.ProjectOperations getProjectOperations()
public org.springframework.roo.classpath.TypeLocationService getTypeLocationService()
public org.springframework.roo.classpath.TypeManagementService getTypeManagementService()
public org.springframework.roo.project.PathResolver getPathResolver()
public org.springframework.roo.process.manager.FileManager getFileManager()
Copyright © 2009–2016. All rights reserved.