commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joe Germuska <...@Germuska.com>
Subject RE: next possible commons project - [regexp] (or [template?])
Date Thu, 26 Sep 2002 14:24:13 GMT
>  > > From: "Tomasz Pik" <pikus@ais.pl>
>  > > > -------- Original Message --------
>  > > >  > Java 1.4 has a new regex package, and there are others
>  > that could be
>>  > >  > considered if a reliance on 1.4 is to be avoided.
>>  > >
>>  > > Maybe something like 'Commons Logging' - one hat (with limited
>>  > > funcionality) for most of the regexp packages
>>  > > (http://regex.info/java.html)?
>  > > >
>>  > > Regards
>>  > > Tomek Pik


Have you found a need for this?  If so, have you got some code that 
would provide a starting point?

While we're floating implementation-abstraction packages, I've 
recently put together a very light weight package to abstract the api 
of a templating system from the implementation.  I have 
implementations for Velocity and Jelly so far.  I'd share if people 
are interested.  So far I'm getting by with basically two versions of 
one API method:

public String mergeTemplate(String templateName, Map context)
and
public void mergeTemplate(String templateName, Map context, Writer writer)

It uses Commons Discovery for configuration.  It works for me.  But 
then, my needs are pretty simple.

Joe


-- 
--
* Joe Germuska    { joe@germuska.com }
"It's pitiful, sometimes, if they've got it bad. Their eyes get 
glazed, they go white, their hands tremble.... As I watch them I 
often feel that a dope peddler is a gentleman compared with the man 
who sells records."
	--Sam Goody, 1956

--
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