RE: Defining Source Interfaces

2003-01-09 Thread Stephan Michels
On Thu, 9 Jan 2003, Carsten Ziegeler wrote: > > Stephan Michels wrote: > > Carsten Ziegeler wrote: > > > > > > Now, think if an implementation for copy(). Each Source implementation > > > must test if the destination is the same source implementation or not. > > > If not use IS/OS if yes use opt

Re: Defining Source Interfaces

2003-01-09 Thread Jens Lorenz
Stephan Michels wrote: About the move() and copy() methods, I don't know if they should be kept in the new incarnation of this interface. :-/ not another MoveableSource ;-) ROFL !!! ;-) Seriously, are these methods of real use ? I thought that these methods could be a good start for a

Re: Defining Source Interfaces

2003-01-09 Thread Jens Lorenz
Carsten Ziegeler wrote: Now, think if an implementation for copy(). Each Source implementation must test if the destination is the same source implementation or not. If not use IS/OS if yes use optimized etc. agreed. So, if we are using these "marker" interfaces for all other parts, I really t

RE: Defining Source Interfaces

2003-01-09 Thread Carsten Ziegeler
Stephan Michels wrote: > Carsten Ziegeler wrote: > > > > Now, think if an implementation for copy(). Each Source implementation > > must test if the destination is the same source implementation or not. > > If not use IS/OS if yes use optimized etc. > > agreed. > > > So, if we are using these "m

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Giacomo Pati wrote: On Wed, 8 Jan 2003, Carsten Ziegeler wrote: Sylvain Wallez wrote: What do you think about the ModifiableSource in Excalibur? (That should be the replacement for WriteableSource - please let *me* win this time ;) ) Sylvain is hard to beat somtimes, I can tell from expe

RE: Defining Source Interfaces

2003-01-08 Thread Geoff Howard
> Stephan Michels wrote: > > >On Wed, 8 Jan 2003, Sylvain Wallez wrote: > > > >>>Anyway, I think your arguments are better than mine (sniff). > >>> > >>>So, we have a TraversableSource or HierarchicalSource or ...? > >>> > >>I'm not a native speaker, but the definition of traversable given by > >>d

Re: Defining Source Interfaces

2003-01-08 Thread Giacomo Pati
On Wed, 8 Jan 2003, Sylvain Wallez wrote: > Carsten Ziegeler wrote: > > >Sylvain Wallez wrote: > > > > > > > > >>And as far as code cleanliness is concerned, an "instanceof" test seems > >>more OOP to me than a isTraversable() method that tells us if is we have > >>the right to use getParent() an

RE: Defining Source Interfaces

2003-01-08 Thread Stephan Michels
On Wed, 8 Jan 2003, Carsten Ziegeler wrote: > Sylvain Wallez wrote: > > > > > >The problem is, if you are using getInputStream/getOutputSteam to copy > > >a file in a slide repository, that all metadata informations get lost. On > > >the other hand, if you are using an external SourceUtil to cop

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
Giacomo Pati wrote: > > And here is the definitiv answer from the avalon team: > > > > "Remember that this is component-oriented programming (COP) and > not OOP". > > > > :) > > C'mon. LifecycleHelper is the master batch of COP and not a "normal" > class! > :) Yes, I know - but if you look at m

RE: Defining Source Interfaces

2003-01-08 Thread Giacomo Pati
On Wed, 8 Jan 2003, Carsten Ziegeler wrote: > > > > -Original Message- > > From: Stephan Michels [mailto:[EMAIL PROTECTED]] > > Sent: Wednesday, January 08, 2003 3:47 PM > > To: [EMAIL PROTECTED] > > Subject: RE: Defining Source Interfaces > &

RE: Defining Source Interfaces

2003-01-08 Thread Giacomo Pati
On Wed, 8 Jan 2003, Carsten Ziegeler wrote: > > Sylvain Wallez wrote: > > What do you think about the ModifiableSource in Excalibur? (That should be > the replacement for WriteableSource - please let *me* win this time ;) ) Sylvain is hard to beat somtimes, I can tell from experience ;) Giacomo

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > > >The problem is, if you are using getInputStream/getOutputSteam to copy > >a file in a slide repository, that all metadata informations get lost. On > >the other hand, if you are using an external SourceUtil to copy a file, > >you can't hide all implementation details. >

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Stephan Michels wrote: About the move() and copy() methods, I don't know if they should be kept in the new incarnation of this interface. I don't think that they are important. A copy is a read/write action and a move a read/write/delete action. We could make an utility class providing support

Re: Defining Source Interfaces

2003-01-08 Thread Stephan Michels
> >>About the move() and copy() methods, I don't know if they should be kept > >>in the new incarnation of this interface. > > > >:-/ not another MoveableSource ;-) > > ROFL !!! ;-) > Seriously, are these methods of real use ? I thought that these methods could be a good start for a cms webpor

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: Aren't we all a little bit mad to send dozen of mails for a bunch of methods ;-P And the real fun has just started: finding the correct name of something! Yuppie! BTW: How are our current blocks called now? (no, no, please don't take this as ser

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Stephan Michels wrote: On Wed, 8 Jan 2003, Sylvain Wallez wrote: Anyway, I think your arguments are better than mine (sniff). So, we have a TraversableSource or HierarchicalSource or ...? I'm not a native speaker, but the definition of traversable given by dictionary.com makes me prefer

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > Aren't we all a little bit mad to send dozen of mails for a bunch of > methods ;-P > And the real fun has just started: finding the correct name of something! Yuppie! BTW: How are our current blocks called now? (no, no, please don't take this as serious). Carsten ---

RE: Defining Source Interfaces

2003-01-08 Thread Stephan Michels
> > About the move() and copy() methods, I don't know if they should be kept > > in the new incarnation of this interface. > > > I don't think that they are important. A copy is a read/write action and > a move a read/write/delete action. We could make an utility class providing > support for it (

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Nicola Ken Barozzi wrote: Sylvain Wallez wrote: Nicola Ken Barozzi wrote: Carsten Ziegeler wrote: Sylvain Wallez wrote: [...] You're totally on track. If you need this action right now, I would suggest to mimic what's in the DirectoryGenerator, that makes the assumption that the Sou

Re: Defining Source Interfaces

2003-01-08 Thread Stephan Michels
On Wed, 8 Jan 2003, Sylvain Wallez wrote: > >Anyway, I think your arguments are better than mine (sniff). > > > >So, we have a TraversableSource or HierarchicalSource or ...? > > I'm not a native speaker, but the definition of traversable given by > dictionary.com makes me prefer hierarchical...

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > > Following Stephen's example, I grep'ed instanceof on the whole 2.1 > source base and found... 388 of them ! > And how many of them are *not* because of Avalon? > >Anyway, I think your arguments are better than mine (sniff). > > > >So, we have a TraversableSource or Hie

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: And as far as code cleanliness is concerned, an "instanceof" test seems more OOP to me than a isTraversable() method that tells us if is we have the right to use getParent() and getChildren(). With a separate interface, these methods do not exi

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
> From: Nicola Ken Barozzi [mailto:[EMAIL PROTECTED]] > >>MHO: It all depends on what a Source is. > >> > >>1 - If a source is a plug to a URI-based source handler, it should have > >>children. > >>2 -If it's a plug to a resource, it should not. > >> > >>Usually a source is (2), but since we bin

Re: Defining Source Interfaces

2003-01-08 Thread Nicola Ken Barozzi
Sylvain Wallez wrote: Nicola Ken Barozzi wrote: Carsten Ziegeler wrote: Sylvain Wallez wrote: [...] You're totally on track. If you need this action right now, I would suggest to mimic what's in the DirectoryGenerator, that makes the assumption that the Source is a file. You can then u

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
> -Original Message- > From: Stephan Michels [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, January 08, 2003 3:47 PM > To: [EMAIL PROTECTED] > Subject: RE: Defining Source Interfaces > > > > > > > And as far as code cleanliness is concerned, an "i

RE: Defining Source Interfaces

2003-01-08 Thread Stephan Michels
> > And as far as code cleanliness is concerned, an "instanceof" test seems > > more OOP to me than a isTraversable() method that tells us if is we have > > the right to use getParent() and getChildren(). With a separate > > interface, these methods do not exist if they do not make sense. > > > T

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > Okay. Let me throw in more arguments ;-) > Great! > How many protocols do we have for which parent and children make sense ? > Actually 2 : 'file' and 'slide' (and 'cvs' soon). For other protocols > such as 'cocoon', 'resource', 'blob', 'xmldb', 'http', etc, this has no

Re: Defining Source Interfaces

2003-01-08 Thread Nicola Ken Barozzi
Carsten Ziegeler wrote: Nicola Ken Barozzi wrote: Carsten Ziegeler wrote: Sylvain Wallez wrote: [...] You're totally on track. If you need this action right now, I would suggest to mimic what's in the DirectoryGenerator, that makes the assumption that the Source is a file. You can then u

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Nicola Ken Barozzi wrote: Carsten Ziegeler wrote: Sylvain Wallez wrote: [...] You're totally on track. If you need this action right now, I would suggest to mimic what's in the DirectoryGenerator, that makes the assumption that the Source is a file. You can then use all the facilities g

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
Nicola Ken Barozzi wrote: > > Carsten Ziegeler wrote: > > Sylvain Wallez wrote: > > > [...] > >>You're totally on track. If you need this action right now, I would > >>suggest to mimic what's in the DirectoryGenerator, that makes the > >>assumption that the Source is a file. You can then use all th

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: Cool. But I'm still not that happy with these methods being on Source itself. What about TraversableSource or HierarchicalSource (I have this last one ready on my PC with collections) ? I really don't like all the

Re: Defining Source Interfaces

2003-01-08 Thread Nicola Ken Barozzi
Carsten Ziegeler wrote: Sylvain Wallez wrote: [...] You're totally on track. If you need this action right now, I would suggest to mimic what's in the DirectoryGenerator, that makes the assumption that the Source is a file. You can then use all the facilities given by File. And we only ar

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > Nicola Ken Barozzi wrote: > > > > > I really don't understand much of the heat in this discussion because > > I'm not so into it, but I'm happy you guys are and are making > progress :-) > > > Thanks. Actually, the discussions is about many points, one after the

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Nicola Ken Barozzi wrote: I really don't understand much of the heat in this discussion because I'm not so into it, but I'm happy you guys are and are making progress :-) Thanks. Actually, the discussions is about many points, one after the other ;-) I just wanted to ask for a second (plea

Re: Defining Source Interfaces

2003-01-08 Thread Nicola Ken Barozzi
Carsten Ziegeler wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: Ah, btw you're right that the Source object should return a Collection instead of an Iterator for the children - I will fix that, too, asap. Cool. But I'm still not that happy with these methods being on Source itself. Wh

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > Carsten Ziegeler wrote: > > >Sylvain Wallez wrote: > > > > > >>The performance problem is that among all implementations of > Source that > >>I know of (URLSource, FileSource, SlideSource, BlobSource, XMLDBSource, > >>SitemapSource and CVSSource), only one actually needs

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: The performance problem is that among all implementations of Source that I know of (URLSource, FileSource, SlideSource, BlobSource, XMLDBSource, SitemapSource and CVSSource), only one actually needs to be disposed (SitemapSource). So having a i

RE: Defining Source Interfaces

2003-01-08 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > The performance problem is that among all implementations of Source that > I know of (URLSource, FileSource, SlideSource, BlobSource, XMLDBSource, > SitemapSource and CVSSource), only one actually needs to be disposed > (SitemapSource). > > So having a isSelectable()-

Re: Defining Source Interfaces

2003-01-08 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: However, I still consider the new implementation of SourceResolverImpl.release() in Excalibur (dated 15 dec. and not currently in Cocoon) to be a performance burden since in most cases all component-related operations it performs *will be useles

RE: Defining Source Interfaces

2003-01-07 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > However, I still consider the new implementation of > SourceResolverImpl.release() in Excalibur (dated 15 dec. and not > currently in Cocoon) to be a performance burden since in most cases all > component-related operations it performs *will be useless*. > > Carsten,

Re: Defining Source Interfaces

2003-01-07 Thread Sylvain Wallez
Vadim Gritsenko wrote: Sylvain Wallez wrote: ... Furthermore, I'm really wondering now if we need to release() a Source, as I can't find any implementation that actually does something of it. Do you mean recycle()? There is no release() in Source... I was referring to SourceResolver.rel

Re: Defining Source Interfaces

2003-01-07 Thread Vadim Gritsenko
Sylvain Wallez wrote: ... Furthermore, I'm really wondering now if we need to release() a Source, as I can't find any implementation that actually does something of it. Do you mean recycle()? There is no release() in Source... If you've meant recycle(), look no further than into SitemapSourc

Re: Defining Source Interfaces

2003-01-06 Thread Stephan Michels
On Mon, 6 Jan 2003, Sylvain Wallez wrote: > Stephan Michels wrote: > > >On Mon, 6 Jan 2003, Sylvain Wallez wrote: > > > >>Stephan Michels wrote: > >> > >> > > /** Return the parent source. Returns null if the source hasn't a > >parent. */ > > public Source getParentSource() throw

Re: Defining Source Interfaces

2003-01-06 Thread Sylvain Wallez
Stephan Michels wrote: On Mon, 6 Jan 2003, Sylvain Wallez wrote: Stephan Michels wrote: /** Return the parent source. Returns null if the source hasn't a parent. */ public Source getParentSource() throws ProcessingException, IOException; } I don't return Sources, because Sources can

Re: Defining Source Interfaces

2003-01-06 Thread Stephan Michels
On Mon, 6 Jan 2003, Sylvain Wallez wrote: > Stephan Michels wrote: > > >On Mon, 6 Jan 2003, Carsten Ziegeler wrote: > > > I added before christmas the possibility to retrieve children > of a source to the Source interface in excalibur and started > with the ModifiableSource interface

Re: Defining Source Interfaces

2003-01-06 Thread Sylvain Wallez
Stephan Michels wrote: On Mon, 6 Jan 2003, Carsten Ziegeler wrote: I added before christmas the possibility to retrieve children of a source to the Source interface in excalibur and started with the ModifiableSource interface (= WriteableSource). What else do we need? I think we have a buch of

Re: Defining Source Interfaces

2003-01-06 Thread Sylvain Wallez
Carsten Ziegeler wrote: Sylvain Wallez wrote: Carsten Ziegeler wrote: I think it's time to define the WriteableSource etc. interfaces for the excalibur source package and move them out of Cocoon. What do you think about this? This would move the responsibility to excalibur :) I guess you'

RE: Defining Source Interfaces

2003-01-06 Thread Stephan Michels
On Mon, 6 Jan 2003, Carsten Ziegeler wrote: > > >I added before christmas the possibility to retrieve children > > >of a source to the Source interface in excalibur and started > > >with the ModifiableSource interface (= WriteableSource). > > > > > >What else do we need? I think we have a buch o

RE: Defining Source Interfaces

2003-01-06 Thread Carsten Ziegeler
Sylvain Wallez wrote: > > Carsten Ziegeler wrote: > > >I think it's time to define the WriteableSource etc. interfaces > >for the excalibur source package and move them out of Cocoon. > > > >What do you think about this? This would move the responsibility > >to excalibur :) > > > > I guess you'

Re: Defining Source Interfaces

2003-01-06 Thread Nicola Ken Barozzi
Carsten Ziegeler wrote: I think it's time to define the WriteableSource etc. interfaces for the excalibur source package and move them out of Cocoon. What do you think about this? This would move the responsibility to excalibur :) Given the current state of Avalon, and more of excalibur, I wo

Re: Defining Source Interfaces

2003-01-06 Thread Steven Noels
Sylvain Wallez wrote: While working on sources recently (the CVSSource I'm about to publish)... Hip Hip Hooray! Wonderful, Sylvain. -- Steven Noelshttp://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at

RE: Defining Source Interfaces

2003-01-06 Thread Morrison, John
> From: Sylvain Wallez [mailto:[EMAIL PROTECTED]] > > While working on sources recently (the CVSSource I'm about to > publish), Yay! :) J. === Information in this email and any attachments are confidential, and may not be c

Re: Defining Source Interfaces

2003-01-06 Thread Sylvain Wallez
Carsten Ziegeler wrote: I think it's time to define the WriteableSource etc. interfaces for the excalibur source package and move them out of Cocoon. What do you think about this? This would move the responsibility to excalibur :) I guess you're joking, but is this good or bad ? Who else besi

RE: Defining Source Interfaces

2003-01-06 Thread Stephan Michels
On Mon, 6 Jan 2003, Carsten Ziegeler wrote: > > > > -Original Message- > > From: Stephan Michels [mailto:[EMAIL PROTECTED]] > > Sent: Monday, January 06, 2003 3:44 PM > > To: Cocoon-Dev > > Subject: Re: Defining Source Interfaces > > > >

RE: Defining Source Interfaces

2003-01-06 Thread Carsten Ziegeler
> -Original Message- > From: Stephan Michels [mailto:[EMAIL PROTECTED]] > Sent: Monday, January 06, 2003 3:44 PM > To: Cocoon-Dev > Subject: Re: Defining Source Interfaces > > > > > On Mon, 6 Jan 2003, Carsten Ziegeler wrote: > > > I think it&#

Re: Defining Source Interfaces

2003-01-06 Thread Stephan Michels
On Mon, 6 Jan 2003, Carsten Ziegeler wrote: > I think it's time to define the WriteableSource etc. interfaces > for the excalibur source package and move them out of Cocoon. > > What do you think about this? This would move the responsibility > to excalibur :) > > I added before christmas the po

Defining Source Interfaces

2003-01-06 Thread Carsten Ziegeler
I think it's time to define the WriteableSource etc. interfaces for the excalibur source package and move them out of Cocoon. What do you think about this? This would move the responsibility to excalibur :) I added before christmas the possibility to retrieve children of a source to the Source in