Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select the Grails MessageSource bean #13630

Merged
merged 2 commits into from
Sep 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import org.springframework.context.MessageSource
class DefaultConstraintEvaluatorFactoryBean implements FactoryBean<ConstraintsEvaluator> {

@Autowired
@Qualifier("pluginAwareResourceBundleMessageSource")
MessageSource messageSource

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import groovy.transform.CompileStatic
import groovy.transform.TypeCheckingMode
import grails.web.mapping.LinkGenerator
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.context.MessageSource
import org.springframework.validation.Errors
import org.springframework.validation.ObjectError
Expand All @@ -47,6 +48,7 @@ abstract class AbstractVndErrorRenderer implements ContainerRenderer<Errors, Ob
boolean prettyPrint = Environment.isDevelopmentMode()

@Autowired
@Qualifier("pluginAwareResourceBundleMessageSource")
MessageSource messageSource

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ abstract class AbstractLinkingRenderer<T> extends AbstractIncludeExcludeRenderer
public static final String DEPRECATED_ATTRIBUTE = 'deprecated'

@Autowired
@Qualifier("pluginAwareResourceBundleMessageSource")
MessageSource messageSource

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ import org.grails.web.databinding.SpringConversionServiceAdapter
import org.grails.web.databinding.converters.ByteArrayMultipartFileValueConverter
import org.grails.web.servlet.mvc.GrailsWebRequest
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.beans.factory.annotation.Qualifier
import org.springframework.context.MessageSource
import org.springframework.validation.BeanPropertyBindingResult
import org.springframework.validation.BindingResult
Expand Down Expand Up @@ -645,6 +646,7 @@ class GrailsWebDataBinder extends SimpleDataBinder {
}

@Autowired
@Qualifier("pluginAwareResourceBundleMessageSource")
void setMessageSource(MessageSource messageSource) {
this.messageSource = messageSource
}
Expand Down
Loading