DefaultGrailsControllerClass (Grails 4.0.6)
Date: 2020-12-19

Package: org.grails.core

## [Java] Class DefaultGrailsControllerClass

- org.grails.core.DefaultGrailsControllerClass

- All Implemented Interfaces and Traits:
    GrailsControllerClass

      @java.lang.SuppressWarnings("rawtypes")
      public class DefaultGrailsControllerClass
      extends AbstractInjectableGrailsClass

  Evaluates the conventions contained within controllers to perform auto-configuration.

  Authors:
    Graeme Rocher
    Steven Devijver
  Since:
    0.1

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static java.lang.String` | `ALLOWED_HTTP_METHODS_PROPERTY` |
    `static java.lang.String` | `CONTROLLER` |
    `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` |

  - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class AbstractGrailsClass` | `grailsApplication`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `DefaultGrailsControllerClass (java.lang.Class<?> clazz)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `java.lang.String` | `actionUriToViewName(java.lang.String actionUri)`
    `` | `java.util.Set<java.lang.String>` | `getActions()`
    `` | `java.lang.String` | `getDefaultAction()`
    `` | `java.lang.String` | `getNamespace()`
    `` | `java.lang.String` | `getScope()`
    `` | `void` | `initialize()`
    `` | `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
    `` | `boolean` | `isSingleton()`
    `` | `boolean` | `mapsToURI(java.lang.String uri)`
    `` | `void` | `registerUrlConverter(UrlConverter urlConverter)` Register a new UrlConverter with the controller
    `` | `void` | `setGrailsApplication(GrailsApplication grailsApplication)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class AbstractInjectableGrailsClass` | `byName, byType, getAvailable`
    `class AbstractGrailsClass` | `getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getMetaProperties, getName, getNaturalName, getPackageName, getPluginName, getPropertyDescriptors, getPropertyName, getPropertyOrStaticPropertyOrFieldValue, getPropertyType, getPropertyValue, getPropertyValue, getPropertyValueObject, getReferenceInstance, getShortName, getStaticPropertyValue, hasMetaMethod, hasMetaMethod, hasMetaProperty, hasProperty, isAbstract, isActionMethod, isReadableProperty, newInstance, setGrailsApplication, toString`

- - ### Field Detail

    - #### public static final java.lang.String ALLOWED_HTTP_METHODS_PROPERTY

    - #### public static final java.lang.String CONTROLLER

    - #### public static final java.lang.Object[] EMPTY_ARGS

    - #### public static final java.lang.String SCOPE

    - #### public static final java.lang.String SCOPE_SINGLETON

    - #### protected java.util.Map<java.lang.String, java.lang.String> actionUriToViewName

  - ### Constructor Detail

    - #### public DefaultGrailsControllerClass(java.lang.Class<?> clazz)

  - ### Method Detail

    - #### public java.lang.String actionUriToViewName(java.lang.String actionUri)

    - #### @java.lang.Override public java.util.Set<java.lang.String> getActions()

    - #### @java.lang.Override public java.lang.String getDefaultAction()

    - #### public java.lang.String getNamespace()

    - #### @java.lang.Override public java.lang.String getScope()

    - #### public void initialize()

    - #### @java.lang.Override 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

      throws:
        Throwable
      Parameters:
        `controller` - The controller instance
        `action` - The action name
      Returns:
        The result of the action

    - #### @java.lang.Override public boolean isSingleton()

    - #### @java.lang.Override public boolean mapsToURI(java.lang.String uri)

    - #### @java.lang.Override public void registerUrlConverter(UrlConverter urlConverter)

      Register a new UrlConverter with the controller

      Parameters:
        `urlConverter` - The UrlConverter to register

    - #### @java.lang.Override public void setGrailsApplication(GrailsApplication grailsApplication)