@groovy.transform.CompileStatic @org.codehaus.groovy.transform.GroovyASTTransformation(phase: CompilePhase.CANONICALIZATION) class ResourceTransform extends java.lang.Object implements org.codehaus.groovy.transform.ASTTransformation, groovy.transform.CompilationUnitAware
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_NAMESPACE |
|
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 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 |
Constructor and description |
---|
ResourceTransform
() |
Type Params | Return Type | Name and description |
---|---|---|
|
ConstructorNode |
addConstructor(org.codehaus.groovy.ast.ClassNode controllerClassNode, org.codehaus.groovy.ast.ClassNode domainClassNode, boolean readOnly) |
|
void |
setCompilationUnit(org.codehaus.groovy.control.CompilationUnit unit) |
|
void |
visit(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() |