[
https://issues.apache.org/jira/browse/CLK-655?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880874#action_12880874
]
Bob Schellink commented on CLK-655:
-----------------------------------
This looks great, exactly what I had in mind. Just to expand a little on the
use cases where a custom messages map is useful:
- Plug in a MessageMap that conditionally caches properties
- Use an alternative algorithm to load property files. For example at work we
have a central code base that is customized for different clients. While each
client uses English property files some clients want alternative labels for
fields. Currently we use a hacked MessagesMap to provide "context sensitive"
lookups, but with this service we could simply plug in our custom version.
I'm not sure MessageMapService is the right name but can't think of something
better at the moment. We can refactor it at a later stage so feel free to
commit.
Kind regards
Bob
> Provide a pluggable MessagesMap service
> ---------------------------------------
>
> Key: CLK-655
> URL: https://issues.apache.org/jira/browse/CLK-655
> Project: Click
> Issue Type: New Feature
> Components: core
> Reporter: Bob Schellink
> Assignee: Bob Schellink
> Fix For: 2.3.0-M1
>
> Attachments: messagesMapService.patch
>
>
> Provide feature to plug custom MessageMap implementations into Click.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.