You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by Karol Borkowski <kb...@homplex.pl> on 2012/09/25 15:56:14 UTC
Implementing custom MessagesMap class
Hi,
I'm trying to implement custom MessagesMap class, so that resource
bundles will be searched in addional location. Unfortunately, when I
override method ensureInitialized() i don't have access to CacheKey
class, because it's private inner class of MessageMap.
Is this an error or should I write my own CacheKey class also?
PS. I've been using click for over 2 years now, great work - can't wait
to check new release!
Karol Borkowski
Re: Implementing custom MessagesMap class
Posted by kenchi <tk...@gmail.com>.
OK, thanks you
-----
friv 2
--
View this message in context: http://click.1134972.n2.nabble.com/Implementing-custom-MessagesMap-class-tp7578271p7578274.html
Sent from the click-development mailing list archive at Nabble.com.
Re: Implementing custom MessagesMap class
Posted by Bob Schellink <sa...@gmail.com>.
Hi all,
If you want to add another location, it might be better to create your own custom CacheKey class
which accepts a fourth parameter. If Click's CacheKey is reused (which only accepts three
parameters) you could run into clashes.
You could base your own implementation on Click's CacheKey if you want.
Kind regards
Bob
On 26/09/2012 03:35 AM, Malcolm Edgar wrote:
> Hi Karol,
>
> OK that is unfortunately an design issue, we should make that inner class a protected. If you can
> raise a JIRA I will get this fixed in the 3.4 RC1 release.
>
> regards Malcolm Edgar
>
> On Tue, Sep 25, 2012 at 11:56 PM, Karol Borkowski <kborkowski@homplex.pl
> <ma...@homplex.pl>> wrote:
>
> Hi,
> I'm trying to implement custom MessagesMap class, so that resource bundles will be searched in
> addional location. Unfortunately, when I override method ensureInitialized() i don't have
> access to CacheKey class, because it's private inner class of MessageMap.
>
> Is this an error or should I write my own CacheKey class also?
>
> PS. I've been using click for over 2 years now, great work - can't wait to check new release!
> Karol Borkowski
>
>
Re: Implementing custom MessagesMap class
Posted by Malcolm Edgar <ma...@gmail.com>.
Hi Karol,
OK that is unfortunately an design issue, we should make that inner class a
protected. If you can raise a JIRA I will get this fixed in the 3.4 RC1
release.
regards Malcolm Edgar
On Tue, Sep 25, 2012 at 11:56 PM, Karol Borkowski <kb...@homplex.pl>wrote:
> Hi,
> I'm trying to implement custom MessagesMap class, so that resource bundles
> will be searched in addional location. Unfortunately, when I override
> method ensureInitialized() i don't have access to CacheKey class, because
> it's private inner class of MessageMap.
>
> Is this an error or should I write my own CacheKey class also?
>
> PS. I've been using click for over 2 years now, great work - can't wait to
> check new release!
> Karol Borkowski
>