mdarifmustafa / vt-middleware

Automatically exported from code.google.com/p/vt-middleware
0 stars 0 forks source link

vt-password: Provide public method to obtain default properties from MessageResolver #182

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be useful to be able to extend or change the default messages used by 
MessageResolver. If there were a public method to get the default properties, 
then this properties object could be modified or used as the defaults for a new 
properties object.

One solution to this would be to make MessageResolver#getDefaultProperties() 
public. People wishing to add custom messages (e.g. if they have created a 
custom Rule) or simply tweak an existing message could then use this returned 
properties object to create a new MessageResolver.

I have created a custom rule so needed to add in a new message. However, I did 
not want to duplicate all the existing messages as this may not survive an 
upgrade. As a work around, I had to manually load the messages.properties file 
and create a new Properties object with this as its defaults.

Original issue reported on code.google.com by max.spi...@york.ac.uk on 30 Jul 2013 at 2:28

GoogleCodeExporter commented 8 years ago
The ability to leverage the default properties in code seems useful.
Scheduling for 3.1.3.

Original comment by dfis...@gmail.com on 30 Jul 2013 at 4:04

GoogleCodeExporter commented 8 years ago
Changed MessageResolver#getDefaultProperties from private to public.
Fixed in r2805.

Original comment by dfis...@gmail.com on 3 Aug 2013 at 2:13