public final class GroovyAwareAutoProxyCreators extends java.lang.Object
Makes the Grails auto-proxy creators known to Spring's AopConfigUtils.
Grails registers GroovyAwareAspectJAwareAdvisorAutoProxyCreator or
GroovyAwareInfrastructureAdvisorAutoProxyCreator under Spring's reserved
org.springframework.aop.config.internalAutoProxyCreator bean name. Anything that later asks
Spring to register or escalate the auto-proxy creator - Spring Boot's AopAutoConfiguration,
@EnableAspectJAutoProxy, the <aop:config> namespace - looks the already-registered bean
class up in Spring's priority list and rejects a class it does not know with
"Class name [...] is not a known auto-proxy creator class".
Appending the Grails creators to that list makes them known, and ranks them above every creator Spring ships, so an escalation attempt leaves the Grails creator in place instead of replacing it with one that does not proxy Groovy classes.
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static void |
registerWithAopConfigUtils()Adds the Grails auto-proxy creators to Spring's auto-proxy creator priority list. |
| 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) |
Adds the Grails auto-proxy creators to Spring's auto-proxy creator priority list. Must be called before the Grails creator is registered under Spring's auto-proxy creator bean name, and is idempotent, so every registration site can call it.