commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: StringUtils constructor is private
Date Mon, 12 Aug 2002 21:36:57 GMT
From: "Daniel Rall" <dlr@finemaltcoding.com>
> "Stephen Colebourne" <scolebourne@btopenworld.com> writes:
> > But given Velocity is broken, I suppose we have to do something. Either
a
> > public constructor or a public static final instance variable 'INSTANCE'
> > would do. But I hate the very thought of it. And it affects all of
> > [collections], [pattern and [lang].
>
> Velocity is not broken -- it simply requires a class instance to
> reference methods of that class.  Valid in Java, valid in Velocity.

But Velocity shouldn't require the class instance. Reflection doesn't.
Something like:
 context.putStatic("foo", StringUtils.class);
 #set ($bar = $foo.chomp())

Stephen



--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message