Uses of Interface
org.springframework.context.MessageSource
Packages that use MessageSource Package Description org.springframework.context This package builds on the beans package to add support for message sources and for the Observer design pattern, and the ability for application objects to obtain resources using a consistent API.org.springframework.context.annotation Annotation support for the Application Context, including JSR-250 "common" annotations, component-scanning, and Java-based metadata for creating Spring-managed objects.org.springframework.context.support Classes supporting the org.springframework.context package, such as abstract base classes for ApplicationContext implementations and a MessageSource implementation.org.springframework.jca.context Integration package that allows for deploying a Spring application context as a JCA 1.7 compliant RAR file.org.springframework.ui.context Contains classes defining the application context subinterface for UI applications.org.springframework.ui.context.support Classes supporting the org.springframework.ui.context package.org.springframework.validation.beanvalidation Support classes for integrating a JSR-303 Bean Validation provider (such as Hibernate Validator) into a Spring ApplicationContext and in particular with Spring's data binding and validation APIs.org.springframework.web.context Contains a variant of the application context interface for web applications, and the ContextLoaderListener that bootstraps a root web application context.org.springframework.web.context.support Classes supporting theorg.springframework.web.contextpackage, such as WebApplicationContext implementations and various utility classes.org.springframework.web.reactive.result.view Support for result handling through view resolution.org.springframework.web.servlet.mvc.annotation Support package for annotation-based Servlet MVC controllers.org.springframework.web.servlet.support Support classes for Spring's web MVC framework.org.springframework.web.servlet.tags This package contains Spring's JSP standard tag library for JSP 2.0+.org.springframework.web.servlet.view Provides standard View and ViewResolver implementations, including abstract base classes for custom implementations.Uses of MessageSource in org.springframework.context
Subinterfaces of MessageSource in org.springframework.context Modifier and Type Interface Description interfaceApplicationContextCentral interface to provide configuration for an application.interfaceConfigurableApplicationContextSPI interface to be implemented by most if not all application contexts.interfaceHierarchicalMessageSourceSub-interface of MessageSource to be implemented by objects that can resolve messages hierarchically.Methods in org.springframework.context that return MessageSource Modifier and Type Method Description MessageSourceHierarchicalMessageSource. getParentMessageSource()Return the parent of this MessageSource, ornullif none.Methods in org.springframework.context with parameters of type MessageSource Modifier and Type Method Description voidMessageSourceAware. setMessageSource(MessageSource messageSource)Set the MessageSource that this object runs in.voidHierarchicalMessageSource. setParentMessageSource(MessageSource parent)Set the parent that will be used to try to resolve messages that this object can't resolve.Uses of MessageSource in org.springframework.context.annotation
Classes in org.springframework.context.annotation that implement MessageSource Modifier and Type Class Description classAnnotationConfigApplicationContextStandalone application context, accepting component classes as input — in particular@Configuration-annotated classes, but also plain@Componenttypes and JSR-330 compliant classes usingjavax.injectannotations.Uses of MessageSource in org.springframework.context.support
Classes in org.springframework.context.support that implement MessageSource Modifier and Type Class Description classAbstractApplicationContextAbstract implementation of theApplicationContextinterface.classAbstractMessageSourceAbstract implementation of theHierarchicalMessageSourceinterface, implementing common handling of message variants, making it easy to implement a specific strategy for a concrete MessageSource.classAbstractRefreshableApplicationContextBase class forApplicationContextimplementations which are supposed to support multiple calls toAbstractApplicationContext.refresh(), creating a new internal bean factory instance every time.classAbstractRefreshableConfigApplicationContextAbstractRefreshableApplicationContextsubclass that adds common handling of specified config locations.classAbstractResourceBasedMessageSourceAbstract base class forMessageSourceimplementations based on resource bundle conventions, such asResourceBundleMessageSourceandReloadableResourceBundleMessageSource.classAbstractXmlApplicationContextConvenient base class forApplicationContextimplementations, drawing configuration from XML documents containing bean definitions understood by anXmlBeanDefinitionReader.classClassPathXmlApplicationContextStandalone XML application context, taking the context definition files from the class path, interpreting plain paths as class path resource names that include the package path (e.g.classDelegatingMessageSourceEmptyMessageSourcethat delegates all calls to the parent MessageSource.classFileSystemXmlApplicationContextStandalone XML application context, taking the context definition files from the file system or from URLs, interpreting plain paths as relative file system locations (e.g.classGenericApplicationContextGeneric ApplicationContext implementation that holds a single internalDefaultListableBeanFactoryinstance and does not assume a specific bean definition format.classGenericGroovyApplicationContextAnApplicationContextimplementation that extendsGenericApplicationContextand implementsGroovyObjectsuch that beans can be retrieved with the dot de-reference syntax instead of usingAbstractApplicationContext.getBean(java.lang.String).classGenericXmlApplicationContextConvenient application context with built-in XML support.classReloadableResourceBundleMessageSourceSpring-specificMessageSourceimplementation that accesses resource bundles using specified basenames, participating in the SpringApplicationContext's resource loading.classResourceBundleMessageSourceMessageSourceimplementation that accesses resource bundles using specified basenames.classStaticApplicationContextApplicationContextimplementation which supports programmatic registration of beans and messages, rather than reading bean definitions from external configuration sources.classStaticMessageSourceSimple implementation ofMessageSourcewhich allows messages to be registered programmatically.Methods in org.springframework.context.support that return MessageSource Modifier and Type Method Description protected MessageSourceAbstractApplicationContext. getInternalParentMessageSource()Return the internal message source of the parent context if it is an AbstractApplicationContext too; else, return the parent context itself.MessageSourceAbstractMessageSource. getParentMessageSource()MessageSourceDelegatingMessageSource. getParentMessageSource()Methods in org.springframework.context.support with parameters of type MessageSource Modifier and Type Method Description voidAbstractMessageSource. setParentMessageSource(MessageSource parent)voidDelegatingMessageSource. setParentMessageSource(MessageSource parent)Constructors in org.springframework.context.support with parameters of type MessageSource Constructor Description MessageSourceAccessor(MessageSource messageSource)Create a new MessageSourceAccessor, using LocaleContextHolder's locale as default locale.MessageSourceAccessor(MessageSource messageSource, Locale defaultLocale)Create a new MessageSourceAccessor, using the given default locale.MessageSourceResourceBundle(MessageSource source, Locale locale)Create a new MessageSourceResourceBundle for the given MessageSource and Locale.MessageSourceResourceBundle(MessageSource source, Locale locale, ResourceBundle parent)Create a new MessageSourceResourceBundle for the given MessageSource and Locale.Uses of MessageSource in org.springframework.jca.context
Classes in org.springframework.jca.context that implement MessageSource Modifier and Type Class Description classResourceAdapterApplicationContextApplicationContextimplementation for a JCA ResourceAdapter.Uses of MessageSource in org.springframework.ui.context
Methods in org.springframework.ui.context that return MessageSource Modifier and Type Method Description MessageSourceTheme. getMessageSource()Return the specific MessageSource that resolves messages with respect to this theme.Uses of MessageSource in org.springframework.ui.context.support
Methods in org.springframework.ui.context.support that return MessageSource Modifier and Type Method Description protected MessageSourceResourceBundleThemeSource. createMessageSource(String basename)Create a MessageSource for the given basename, to be used as MessageSource for the corresponding theme.MessageSourceSimpleTheme. getMessageSource()Constructors in org.springframework.ui.context.support with parameters of type MessageSource Constructor Description SimpleTheme(String name, MessageSource messageSource)Create a SimpleTheme.Uses of MessageSource in org.springframework.validation.beanvalidation
Methods in org.springframework.validation.beanvalidation with parameters of type MessageSource Modifier and Type Method Description voidLocalValidatorFactoryBean. setValidationMessageSource(MessageSource messageSource)Specify a custom Spring MessageSource for resolving validation messages, instead of relying on JSR-303's default "ValidationMessages.properties" bundle in the classpath.Constructors in org.springframework.validation.beanvalidation with parameters of type MessageSource Constructor Description MessageSourceResourceBundleLocator(MessageSource messageSource)Build a MessageSourceResourceBundleLocator for the given MessageSource.Uses of MessageSource in org.springframework.web.context
Subinterfaces of MessageSource in org.springframework.web.context Modifier and Type Interface Description interfaceConfigurableWebApplicationContextInterface to be implemented by configurable web application contexts.interfaceWebApplicationContextInterface to provide configuration for a web application.Uses of MessageSource in org.springframework.web.context.support
Classes in org.springframework.web.context.support that implement MessageSource Modifier and Type Class Description classAbstractRefreshableWebApplicationContextAbstractRefreshableApplicationContextsubclass which implements theConfigurableWebApplicationContextinterface for web environments.classAnnotationConfigWebApplicationContextWebApplicationContextimplementation which accepts component classes as input — in particular@Configuration-annotated classes, but also plain@Componentclasses and JSR-330 compliant classes usingjavax.injectannotations.classGenericWebApplicationContextSubclass ofGenericApplicationContext, suitable for web environments.classGroovyWebApplicationContextWebApplicationContextimplementation which takes its configuration from Groovy bean definition scripts and/or XML files, as understood by aGroovyBeanDefinitionReader.classStaticWebApplicationContextStaticWebApplicationContextimplementation for testing.classXmlWebApplicationContextWebApplicationContextimplementation which takes its configuration from XML documents, understood by anXmlBeanDefinitionReader.Uses of MessageSource in org.springframework.web.reactive.result.view
Methods in org.springframework.web.reactive.result.view that return MessageSource Modifier and Type Method Description MessageSourceRequestContext. getMessageSource()Return the MessageSource in use with this request.Constructors in org.springframework.web.reactive.result.view with parameters of type MessageSource Constructor Description RequestContext(ServerWebExchange exchange, Map<String,Object> model, MessageSource messageSource)RequestContext(ServerWebExchange exchange, Map<String,Object> model, MessageSource messageSource, RequestDataValueProcessor dataValueProcessor)Uses of MessageSource in org.springframework.web.servlet.mvc.annotation
Methods in org.springframework.web.servlet.mvc.annotation with parameters of type MessageSource Modifier and Type Method Description voidResponseStatusExceptionResolver. setMessageSource(MessageSource messageSource)Uses of MessageSource in org.springframework.web.servlet.support
Methods in org.springframework.web.servlet.support that return MessageSource Modifier and Type Method Description static MessageSourceJstlUtils. getJstlAwareMessageSource(ServletContext servletContext, MessageSource messageSource)Checks JSTL's "javax.servlet.jsp.jstl.fmt.localizationContext" context-param and creates a corresponding child message source, with the provided Spring-defined MessageSource as parent.MessageSourceRequestContext. getMessageSource()Return the current WebApplicationContext as MessageSource.Methods in org.springframework.web.servlet.support with parameters of type MessageSource Modifier and Type Method Description static voidJstlUtils. exposeLocalizationContext(HttpServletRequest request, MessageSource messageSource)Exposes JSTL-specific request attributes specifying locale and resource bundle for JSTL's formatting and message tags, using Spring's locale and MessageSource.static MessageSourceJstlUtils. getJstlAwareMessageSource(ServletContext servletContext, MessageSource messageSource)Checks JSTL's "javax.servlet.jsp.jstl.fmt.localizationContext" context-param and creates a corresponding child message source, with the provided Spring-defined MessageSource as parent.Uses of MessageSource in org.springframework.web.servlet.tags
Methods in org.springframework.web.servlet.tags that return MessageSource Modifier and Type Method Description protected MessageSourceMessageTag. getMessageSource()Use the current RequestContext's application context as MessageSource.protected MessageSourceThemeTag. getMessageSource()Use the theme MessageSource for theme message resolution.Uses of MessageSource in org.springframework.web.servlet.view
Constructors in org.springframework.web.servlet.view with parameters of type MessageSource Constructor Description JstlView(String url, MessageSource messageSource)Create a new JstlView with the given URL.