commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Heger <oliver.he...@oliver-heger.de>
Subject Re: [lang] VariableFormatter - pre 2.2
Date Fri, 07 Jul 2006 20:02:14 GMT
Stephen Colebourne wrote:
<snip/>

> 
> Oliver Heger wrote:
>  > Fine with me, but could the return value of lookup be Object instead
>  > of String? Especially if you want to use this interface in other
>  areas, you might need more freedom. If only String processing needs
>  > to be performed, the returned Object can be transformed to a String by
>  > calling toString().
> 
> But what kind of object are you expectng to be returned here (other than 
> a String)?
> 
> A similar question applies to the replaceObject() method which appears 
> to have very odd semantics as you can't rely on the return value being 
> of any specific type. What Objects are you expecting to work with?
> 
> Stephen
> 
I plan to use the class in [configuration] for variable substitution. A 
variable can represent a configuration property, which can have an 
arbitrary type.

Oliver

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


Mime
View raw message