Re: [Htmlparser-developer] ParserFeedback mechanism
Brought to you by:
derrickoswald
From: Somik R. <so...@ya...> - 2003-05-02 14:46:01
|
Hi Derrick, Dhaval, Everyone, I've been thinking about his for a while too, and I agree with you - = we shouldnt decide before 1.3 is out. Some issues that have been on my mind -=20 [1] I find the parser's differentiating factor is its size - time and = time again the feedback I've received is that folks love its being below = 100K. Size almost directly maps on to simplicity. And that impacts the = other important area - performance. [2] I hate to pay for what I don't need - when folks get tons of stuff = that they don't need, they are paying for the needs of a few. At the same time, I think it is a challenge to be able to accomodate new = requests and still keep the parser light. I see a natural layer forming: ,----------------------------------------. | Sample Applications, GUI | | ,'''''''''''''''''''''''''''''''`. | | | Logging Mechanism | | | | ,''''''''''''''''''''''''''| | | | | | Beans | | | | | | +--------------------b | | | | | | | Scanners | | | | | | | | ,---------------Y | | | | | | | | | Core Parser | | | | | | | | | `.............../ | | | | | | | L____________________| | | | | | | | | | | | '`'''''''''''''''''''''''''' | | | | default, log4j, jdk1.4 | | | `................................/ | |________________________________________| If we can perform this seperation in the design and the packaging, it = might allow people to choose what they need. We don't have to follow the = "one size fits all" policy. What are your thoughts? I am not sure how we'd achieve this seperation = or whether it really makes sense - so please jump in with your two = cents.. Regards, Somik ----- Original Message -----=20 From: "Derrick Oswald" <Der...@ro...> To: <htm...@li...> Sent: Friday, May 02, 2003 4:13 AM Subject: Re: [Htmlparser-developer] ParserFeedback mechanism > I looked at this earlier too, regarding the org.apache.commons.logging = > package: > http://jakarta.apache.org/commons/logging.html > which provides a thin logging-system agnostic interface. >=20 > There didn't appear to be anything in the licence=20 > (http://jakarta.apache.org/commons/license.html) that precludes=20 > repackaging the code into the htmlparser tree. It isn't very large. We = > would have to say >=20 > "This product includes software developed by the Apache Software = Foundation (http://www.apache.org/)." >=20 > somewhere in the documentation. >=20 > There is however, the task of re-working every file in the source tree = > to use the logging wrapper mechanism, which is non-trivial (190 files, = > 83 of which are tests). > I would suggest this be undertaken when version 1.3 is finished. I = think=20 > we can arbitrarily set a cut-off point for 1.3 next week, unless a = major=20 > show-stopper is discovered. > Of course for backwards compatibility, we should just deprecate the=20 > ParserFeedback (et al) and provide an implementation for it in terms = of=20 > the new logging code. >=20 > Derrick >=20 > dha...@or... wrote: >=20 > >Hi guys, > > > >I remember we had a discussion about the feedback mechanism earlier. = I > >just wanted to restart it by suggesting use of the Logging Wrapper = from > >Jakarta. > > > >I have noticed that if anyone wants to use the ParserFeedback to log > >then they will need to mostly extend the DefaultParserFeedback class = and > >override the methods appropriately. If we can map the ParserFeedback > >class to the Logging Wrapper applications can easily use the Feedback > >mechanism to log to Log4j and JDK 1.4 without having to do a thing. = most > >users according tome woudl be using one of these systems. I believe = the > >argument then was coupling with a third-party library. But I believe = the > >flexibility it offers outstrips the coupling drawback.=20 > > > >Furthermore imagine an application which is using some other logging > >tool. They have coded their entire logging framework using the = Logging > >Wrapper and have used an adapter to log to their logging tool. If = they > >use the parser and want to log its output as well, they will have to > >write one more adapter. Instead if the parser provides a mechanism = for > >using the Logging Wrapper, they would not need to do anything.=20 > > > >We ahve actually had requests wherein different clients have asked = for > >different logging tools to be used!!! Hence the request. > > > >We could simply extend from DefaultParserFeedback for = LogWrapperFeedback > >and make it implement the commons logging interface. > > > >Do let me know your thoughts/opinions/suggestions on the same. > > > >Regards, > >Dhaval > > > > > > =20 > > >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Htmlparser-developer mailing list > Htm...@li... > https://lists.sourceforge.net/lists/listinfo/htmlparser-developer |