velocity-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith R. Bennett" <>
Subject Re: Dereferencing a Reference
Date Thu, 08 Jun 2006 15:53:55 GMT
Barbara -

Jakarta Commons Collections has all kinds of neat classes and utilities 
for this kind of thing.  While unfortunately they don't support 
generics, larvalabs has a product that does.  The URL redirects to  The download page is at  However, 
the most recent version is 4.0 Beta 3 dated July 7, 2005.

The link to their javadoc is, and you 
can find the class "UnmodifiableMap".


Barbara Baughman wrote:

>BTW, I never pass a HashMap to the context.  I have created a class
>called SecureHashMap that looks exactly like HashMap but overrides all
>methods that would change the content so they do nothing.  So in
>actual practice, my last line would read:
>ctx.put("map",new SecureHashMap<String, String>(hm));
>Barbara Baughman

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message