avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mircea Toma" <mirceat...@apache.org>
Subject Re: [Proposal]: Extending Parser Interface
Date Fri, 15 Nov 2002 17:40:38 GMT
Hi Carsten,

I wouldn't do that. By passing parameters to configure a Component you break
SoC pattern. I would just have different parsers configured with different
parameters and select them using the CS or CM.

Mircea

----- Original Message -----
From: "Carsten Ziegeler" <cziegeler@s-und-n.de>
To: "Avalon Development" <avalon-dev@jakarta.apache.org>
Sent: Friday, November 15, 2002 5:45 AM
Subject: [Proposal]: Extending Parser Interface


> Hi,
>
> what do you think of extending the
> org.apache.excalibur.xml.sax.Parser interface by
> adding a parse() method:
>
> void parse( InputSource in,
>                 ContentHandler contentHandler,
>                 LexicalHandler lexicalHandler,
>                 Parameters     parameters )
>         throws SAXException, IOException;
>
> With this method you can influence the parsing, e.g.
> turn on/off validation for this parse cycle etc.
>
> Carsten
>
> --
> To unsubscribe, e-mail:
<mailto:avalon-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:avalon-dev-help@jakarta.apache.org>
>
>


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


Mime
View raw message