Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Set resource in BeanDefinition
Browse files Browse the repository at this point in the history
  • Loading branch information
rainboyan committed Jun 6, 2022
1 parent d4a0e9c commit 1a477ab
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import org.springframework.beans.factory.config.RuntimeBeanReference
import org.springframework.beans.factory.support.BeanDefinitionRegistry
import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor
import org.springframework.beans.factory.support.GenericBeanDefinition
import org.springframework.core.io.DescriptiveResource
import org.springframework.core.Ordered

/**
Expand Down Expand Up @@ -69,6 +70,7 @@ class GrailsLayoutViewResolverPostProcessor implements BeanDefinitionRegistryPos
if (markBeanPrimary) {
beanDefinition.primary = true
}
beanDefinition.setResource(new DescriptiveResource("org.grails.plugins.web.GroovyPagesGrailsPlugin"))
final MutablePropertyValues propertyValues = beanDefinition.getPropertyValues()
propertyValues.addPropertyValue('innerViewResolver', previousViewResolver)
propertyValues.addPropertyValue('groovyPageLayoutFinder', new RuntimeBeanReference((String) GROOVY_PAGE_LAYOUT_FINDER_BEAN_NAME, false))
Expand Down

0 comments on commit 1a477ab

Please sign in to comment.