@groovy.transform.CompileStatic @org.codehaus.groovy.transform.GroovyASTTransformation(phase = CompilePhase.CANONICALIZATION) class ResourceTransform extends java.lang.Object
The Resource transform automatically exposes a domain class as a RESTful resource. In effect the transform adds a controller to a Grails application that performs CRUD operations on the domain. See the Resource annotation for more details
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
ARGUMENT_STATUS |
|
static java.lang.String |
ATTR_READY_ONLY |
|
static java.lang.String |
ATTR_RESPONSE_FORMATS |
|
static java.lang.String |
ATTR_SUPER_CLASS |
|
static java.lang.String |
ATTR_URI |
|
static org.codehaus.groovy.ast.ClassNode |
AUTOWIRED_CLASS_NODE |
|
static org.codehaus.groovy.ast.expr.ConstantExpression |
CONSTANT_STATUS |
|
static java.lang.String |
PARAMS_VARIABLE |
|
static java.lang.String |
REDIRECT_METHOD |
|
static java.lang.String |
RENDER_METHOD |
|
static java.lang.String |
RESPOND_METHOD |
Type Params | Return Type | Name and description |
---|---|---|
|
org.codehaus.groovy.ast.ConstructorNode |
addConstructor(org.codehaus.groovy.ast.ClassNode controllerClassNode, org.codehaus.groovy.ast.ClassNode domainClassNode, boolean readOnly) |
|
ResourceLocator |
getResourceLocator() |
|
void |
visit(org.codehaus.groovy.ast.ASTNode[] astNodes, org.codehaus.groovy.control.SourceUnit source) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |