@java.lang.SuppressWarnings("rawtypes") public class DefaultGrailsControllerClass extends AbstractInjectableGrailsClass implements GrailsControllerClass
Evaluates the conventions contained within controllers to perform auto-configuration.
Modifiers | Name | Description |
---|---|---|
private interface |
DefaultGrailsControllerClass.ActionInvoker |
|
private class |
DefaultGrailsControllerClass.MethodHandleInvoker |
|
private class |
DefaultGrailsControllerClass.ReflectionInvoker |
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
ALLOWED_HTTP_METHODS_PROPERTY |
|
static java.lang.String |
CONTROLLER |
|
private static java.lang.String |
DEFAULT_CLOSURE_PROPERTY |
|
static java.lang.Object[] |
EMPTY_ARGS |
|
static java.lang.String |
SCOPE |
|
static java.lang.String |
SCOPE_SINGLETON |
|
protected java.util.Map<java.lang.String, java.lang.String> |
actionUriToViewName |
|
private java.util.Map<java.lang.String, ActionInvoker> |
actions |
|
private java.lang.String |
defaultActionName |
|
private java.lang.String |
namespace |
|
private java.lang.String |
scope |
Fields inherited from class | Fields |
---|---|
class AbstractGrailsClass |
classPropertyFetcher, clazz, fullName, grailsApplication, isAbstract, logicalPropertyName, name, naturalName, packageName, propertyName, shortName |
Constructor and description |
---|
DefaultGrailsControllerClass
(java.lang.Class<?> clazz) |
Type Params | Return Type | Name and description |
---|---|---|
|
public java.lang.String |
actionUriToViewName(java.lang.String actionUri) |
|
public java.util.Set<java.lang.String> |
getActions() |
|
public java.lang.String |
getDefaultAction() |
|
public java.lang.String |
getNamespace() |
|
public java.lang.String |
getScope() |
|
public void |
initialize() |
|
public java.lang.Object |
invoke(java.lang.Object controller, java.lang.String action) Invokes the controller action for the given name on the given controller instance |
|
public boolean |
isSingleton() |
|
public boolean |
mapsToURI(java.lang.String uri) |
|
private void |
methodStrategy(java.util.Map<java.lang.String, ActionInvoker> methodNames) |
|
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