public interface MessageContext extends LocaleResolver, Serializable, Cloneable
Cloneable
. If you need a new instance, then use
Object.clone()
.Modifier and Type | Method and Description |
---|---|
MessageContext |
clone()
Clones the current MessageContext.
|
LocaleResolver |
getLocaleResolver() |
MessageInterpolator |
getMessageInterpolator() |
MessageResolver |
getMessageResolver() |
List<String> |
getMessageSources() |
MessageContext |
localeResolver(LocaleResolver localeResolver) |
Message |
message() |
MessageContext |
messageInterpolator(MessageInterpolator messageInterpolator) |
MessageContext |
messageResolver(MessageResolver messageResolver) |
MessageContext |
messageSource(String... messageSource)
Configures a message source instance for use by a
MessageResolver . |
getLocale
MessageContext clone()
Message message()
MessageContext messageSource(String... messageSource)
MessageResolver
.messageSource
- message source to addMessageContext messageInterpolator(MessageInterpolator messageInterpolator)
messageInterpolator
- a new message interpolator to be setMessageContext messageResolver(MessageResolver messageResolver)
messageResolver
- a new message resolver to be setMessageContext localeResolver(LocaleResolver localeResolver)
localeResolver
- a new locale resolver to be setMessageInterpolator getMessageInterpolator()
MessageResolver getMessageResolver()
LocaleResolver getLocaleResolver()
Copyright © 2016 The Apache Software Foundation. All rights reserved.