- All Implemented Interfaces:
- ConfigurableRule<com.sun.codemodel.JCodeModel,com.sun.codemodel.JDefinedClass,ApiResourceMetadata>, Rule<com.sun.codemodel.JCodeModel,com.sun.codemodel.JDefinedClass,ApiResourceMetadata>
public class Spring3ControllerInterfaceRule
extends SpringControllerInterfaceRule
A code generation Rule that provides a standalone Controller interface with Spring4 annotations.
The goal is to generate code that does not have to be manually extended by the user.
A raml endpoint called /people for example would lead to the following interface only:
// 1. Controller Interface
@RestController
@RequestMapping("/people")
interface PeopleController {
@RequestMapping(value="", method=RequestMethod.GET)
ResponseEntity getPeople();
}
Now all the user has to do is to implement a this interface.
This way he can implement the endpoint without altering the generated code.
- Since:
- 0.4.1
- Author:
- armin.weisser