Class DefaultMessageSourceResolvable

java.lang.Object
org.springframework.context.support.DefaultMessageSourceResolvable
All Implemented Interfaces:
Serializable, MessageSourceResolvable
Direct Known Subclasses:
ObjectError

public class DefaultMessageSourceResolvable extends Object implements MessageSourceResolvable, Serializable
Spring's default implementation of the MessageSourceResolvable interface. Offers an easy way to store all the necessary values needed to resolve a message via a MessageSource.
Since:
13.02.2004
Author:
Juergen Hoeller
See Also:
  • Constructor Details

    • DefaultMessageSourceResolvable

      public DefaultMessageSourceResolvable(String code)
      Create a new DefaultMessageSourceResolvable.
      Parameters:
      code - the code to be used to resolve this message
    • DefaultMessageSourceResolvable

      public DefaultMessageSourceResolvable(String[] codes)
      Create a new DefaultMessageSourceResolvable.
      Parameters:
      codes - the codes to be used to resolve this message
    • DefaultMessageSourceResolvable

      public DefaultMessageSourceResolvable(String[] codes, String defaultMessage)
      Create a new DefaultMessageSourceResolvable.
      Parameters:
      codes - the codes to be used to resolve this message
      defaultMessage - the default message to be used to resolve this message
    • DefaultMessageSourceResolvable

      public DefaultMessageSourceResolvable(String[] codes, Object[] arguments)
      Create a new DefaultMessageSourceResolvable.
      Parameters:
      codes - the codes to be used to resolve this message
      arguments - the array of arguments to be used to resolve this message
    • DefaultMessageSourceResolvable

      public DefaultMessageSourceResolvable(@Nullable String[] codes, @Nullable Object[] arguments, @Nullable String defaultMessage)
      Create a new DefaultMessageSourceResolvable.
      Parameters:
      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
    • DefaultMessageSourceResolvable

      public DefaultMessageSourceResolvable(MessageSourceResolvable resolvable)
      Copy constructor: Create a new instance from another resolvable.
      Parameters:
      resolvable - the resolvable to copy from
  • Method Details