Skip to content

Commit

Permalink
#11522 Add GroovyAwareInfrastructureAdvisorAutoProxyCreator to AopCon…
Browse files Browse the repository at this point in the history
…figUtils::APC_PRIORITY_LIST_FIELD
  • Loading branch information
puneetbehl committed May 5, 2022
1 parent 725e389 commit 9cda18e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import grails.core.GrailsApplicationClass
import groovy.transform.CompileStatic
import org.grails.compiler.injection.AbstractGrailsArtefactTransformer
import org.grails.spring.aop.autoproxy.GroovyAwareAspectJAwareAdvisorAutoProxyCreator
import org.grails.spring.aop.autoproxy.GroovyAwareInfrastructureAdvisorAutoProxyCreator
import org.springframework.aop.config.AopConfigUtils
import org.springframework.context.ApplicationContext
import org.springframework.context.ApplicationContextAware
Expand Down Expand Up @@ -51,6 +52,7 @@ class GrailsAutoConfiguration implements GrailsApplicationClass, ApplicationCont
field.setAccessible(true)
Object obj = field.get(null)
List<Class<?>> list = (List<Class<?>>) obj
list.add(GroovyAwareInfrastructureAdvisorAutoProxyCreator.class)
list.add(GroovyAwareAspectJAwareAdvisorAutoProxyCreator.class)
}
} catch (Throwable e) {
Expand Down

0 comments on commit 9cda18e

Please sign in to comment.