Package org.passay

Class PropertiesMessageResolver

  • All Implemented Interfaces:

    public class PropertiesMessageResolver
    extends AbstractMessageResolver
    Resolves messages from rule result details from a properties file. The default properties file is loaded from the classpath, see DEFAULT_MESSAGE_PATH.
    Middleware Services
    • Field Detail


        public static final String DEFAULT_MESSAGE_PATH
        Classpath location of default message map.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PropertiesMessageResolver

        public PropertiesMessageResolver()
        Creates a new message resolver with the default message properties. See getDefaultProperties().
      • PropertiesMessageResolver

        public PropertiesMessageResolver​(Properties properties)
        Creates a new message resolver with the supplied message properties.
        properties - map of keys to messages.
    • Method Detail

      • getDefaultProperties

        public static Properties getDefaultProperties()
        Returns the default mapping of message keys to message strings.
        default message mapping.