java.lang.Object | |
↳ | org.springframework.context.support.DefaultMessageSourceResolvable |
Known Direct Subclasses |
Known Indirect Subclasses |
Default implementation of the MessageSourceResolvable
interface.
Offers an easy way to store all the necessary values needed to resolve
a message via a MessageSource
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Create a new DefaultMessageSourceResolvable.
| |||||||||||
Create a new DefaultMessageSourceResolvable.
| |||||||||||
Create a new DefaultMessageSourceResolvable.
| |||||||||||
Create a new DefaultMessageSourceResolvable.
| |||||||||||
Create a new DefaultMessageSourceResolvable.
| |||||||||||
Copy constructor: Create a new instance from another resolvable.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the array of arguments to be used to resolve this message.
| |||||||||||
Return the default code of this resolvable, that is,
the last one in the codes array.
| |||||||||||
Return the codes to be used to resolve this message, in the order that
they should get tried.
| |||||||||||
Return the default message to be used to resolve this message.
| |||||||||||
Default implementation exposes the attributes of this MessageSourceResolvable.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Build a default String representation for this MessageSourceResolvable:
including codes, arguments, and default message.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
org.springframework.context.MessageSourceResolvable
|
Create a new DefaultMessageSourceResolvable.
code | the code to be used to resolve this message |
---|
Create a new DefaultMessageSourceResolvable.
codes | the codes to be used to resolve this message |
---|
Create a new DefaultMessageSourceResolvable.
codes | the codes to be used to resolve this message |
---|---|
defaultMessage | the default message to be used to resolve this message |
Create a new DefaultMessageSourceResolvable.
codes | the codes to be used to resolve this message |
---|---|
arguments | the array of arguments to be used to resolve this message |
Create a new DefaultMessageSourceResolvable.
codes | the codes to be used to resolve this message |
---|---|
arguments | the array of arguments to be used to resolve this message |
defaultMessage | the default message to be used to resolve this message |
Copy constructor: Create a new instance from another resolvable.
resolvable | the resolvable to copy from |
---|
Return the array of arguments to be used to resolve this message.
Return the default code of this resolvable, that is, the last one in the codes array.
Return the codes to be used to resolve this message, in the order that they should get tried. The last code will therefore be the default one.
Return the default message to be used to resolve this message.
null
if no default
Default implementation exposes the attributes of this MessageSourceResolvable.
To be overridden in more specific subclasses, potentially including the
resolvable content through resolvableToString()
.
Build a default String representation for this MessageSourceResolvable: including codes, arguments, and default message.