@SuppressWarnings("rawtypes") public class DefaultGrailsControllerClass extends AbstractInjectableGrailsClass implements GrailsControllerClass
Evaluates the conventions contained within controllers to perform auto-configuration.
Modifiers | Name | Description |
---|---|---|
static String |
ALLOWED_HTTP_METHODS_PROPERTY |
|
static String |
CONTROLLER |
|
static Object[] |
EMPTY_ARGS |
|
static String |
SCOPE |
|
static String |
SCOPE_SINGLETON |
|
protected Map<String, String> |
actionUriToViewName |
Fields inherited from class | Fields |
---|---|
class AbstractGrailsClass |
grailsApplication |
Constructor and description |
---|
DefaultGrailsControllerClass(Class<?> clazz) |
Type Params | Return Type | Name and description |
---|---|---|
|
public String |
actionUriToViewName(String actionUri) |
|
public Set<String> |
getActions() |
|
public String |
getDefaultAction() |
|
public String |
getNamespace() |
|
public String |
getScope() |
|
public void |
initialize() |
|
public Object |
invoke(Object controller, String action) Invokes the controller action for the given name on the given controller instance |
|
public boolean |
isActionMethod(String methodName) |
|
public boolean |
isSingleton() |
|
public boolean |
mapsToURI(String uri) |
|
public void |
registerUrlConverter(UrlConverter urlConverter) Register a new UrlConverter with the controller |
|
public void |
setGrailsApplication(GrailsApplication grailsApplication) |
Invokes the controller action for the given name on the given controller instance
controller
- The controller instanceaction
- The action nameRegister a new UrlConverter with the controller
urlConverter
- The UrlConverter to register