@groovy.transform.CompileStatic class BeanTypeResolver extends java.lang.Object
Used in doWithSpring to allow overriding of the class of individual Spring beans by setting a property in the config.
The property name syntax is beanName + 'BeanClass', so for example to override the type of the 'authoritiesMapper'
bean, add a property authoritiesMapperBeanClass = 'com.foo.Bar' or
authoritiesMapperBeanClass = com.foo.Bar.
This is useful when a bean override retains all of the configuration options of the original and only the class is
different. Just overriding the class (ordinarily done with a bean post-processor) allows redefined beans to use new
or changed properties in future versions of the plugin.
| Modifiers | Name | Description |
|---|---|---|
protected groovy.util.ConfigObject |
conf |
|
protected GrailsApplication |
grailsApplication |
| Constructor and description |
|---|
BeanTypeResolver(groovy.util.ConfigObject securityConfig, GrailsApplication application) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
java.lang.Class |
resolveType(java.lang.String beanName, java.lang.Class defaultType) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |