Re: [logging] [proposal] Log.getChildLogger(String) method and managed environments

2004-04-26 Thread Herve Quiroz
Neeme, I thought I could share my thoughts on this subject, more as a user of [logging] rather than a developper. I've been using [logging] in many of my projects until recently when I needed inversion of control stuff. I have since switched to Avalon Framework Logger API. Actually, it's the onl

Re: [collections] Size and scope issues

2004-04-22 Thread Herve Quiroz
On Thu, Apr 22, 2004 at 08:17:51PM +0100, Stephen Colebourne wrote: > Its always good to see the opposing points of view ;-) Thanks for all > feedback. > > Following this discussion I did a search around the web to try and find > references to collections causing a problem by its size. I didn't re

Re: [all][site] Finally publishing top level site

2004-04-20 Thread Herve Quiroz
On Tue, Apr 20, 2004 at 10:47:16AM -0400, Mark R. Diggory wrote: > All better now, please review the new site content and feel free to > point out any major erros. > > -thanks, > Mark > Hum. this link is broken as well: http://jakarta.apache.org/commons/sandbox/jrcs/ Herve --

Re: [all][site] Finally publishing top level site

2004-04-20 Thread Herve Quiroz
On Tue, Apr 20, 2004 at 10:47:16AM -0400, Mark R. Diggory wrote: > All better now, please review the new site content and feel free to > point out any major erros. > > -thanks, > Mark The following link is now broken: http://jakarta.apache.org/commons/sandbox/functor/examples.html It was worki

[events] Re: [collections] Size and scope issues

2004-04-20 Thread Herve Quiroz
On Mon, Apr 19, 2004 at 10:50:39PM +0100, Stephen Colebourne wrote: > From: "Noel J. Bergman" <[EMAIL PROTECTED]> > > > > - ALL the Unmodifiable crap > > > > > I can understand this. The reason the classes exist is for > > > completeness and practicality. [collections] has interfaces > > > that are

Re: [math] Graph theory

2004-04-20 Thread Herve Quiroz
exampe, I know I've > been looking very long for a package that could allow me to build > combinatorial graphs and would then allow me to compute the distance > between subsets... I've never found that. > > paul > > > On 19-Apr-04, at 21:07 Uhr, Herve Qu

[math] Graph theory

2004-04-19 Thread Herve Quiroz
Hi, Is there something planned regarding graph theory within the [math] project? I'm asking because I'm coding a network simulator and I have been looking for such a package for a while. Now I've implemented my own (quite limited and specific) package. Still, if someone already planned something

[events] DynamicProxy decorator

2004-04-19 Thread Herve Quiroz
Hi all, I've realized that using standard decorator pattern usually makes the "additional" interfaces such as "BoundedCollection" go away in the process. This means for instance that the CollectionUtils.isFull() method can no longer use the isFull() method from the object. You can implement comp

Re: [functor] [patch] contributions

2003-11-12 Thread Herve Quiroz
Well I thought of that before actually... And I believe this could be done using *BoundProcedure. But I have some trouble trying to define what the arguments would/should represent and where they would get passed. What do you think the run(Object left, Object right) method from WhileDoBinaryProced

Re: [functor] [patch] contributions

2003-11-06 Thread Herve Quiroz
e that although this class implements * [EMAIL PROTECTED] Serializable}, a given instance will * only be truly Serializable if all the * underlying functors are. Attempts to serialize * an instance whose delegates are not all * Serializable will result in an exception. * * @author

Re: [functor] possible contributions

2003-11-05 Thread Herve Quiroz
On Tue, Nov 04, 2003 at 09:06:37AM -0800, Rodney Waldhoff wrote: > > There are some others but I need to classify them and decide which ones > > are generic enough to be part of commons-functor... > > > > Obviously, I will provide everything with complete Javadoc support and > > test cases whenever

Re: [functor] possible contributions

2003-11-05 Thread Herve Quiroz
I had another look at the current implementation of And/Or last night. As the implementation already uses a collection, why not providing a constructor with a collection as a parameter: public Or(Collection collection) { this.list.addAll(collection); } (Or adding predicate one by one just

Re: [functor] possible contributions

2003-11-04 Thread Herve Quiroz
On Tue, Nov 04, 2003 at 09:06:37AM -0800, Rodney Waldhoff wrote: > On Tue, 4 Nov 2003, Herve Quiroz wrote: > > - class Predicates: Predicates utility methods > > > > public static Or or(Collection predicates); > > public static And and(Collection predicates); > &g

[functor] possible contributions

2003-11-04 Thread Herve Quiroz
Hi, I am using commons-functor to build a network simulator (based upon an XML document modified through procedures and validated against predicates each cycle). I had to develop several additions to commons-functor and I thought I could donate them to commons-functor. There are several functors

[VFS] Composite FileSelector and commons-functor

2003-08-26 Thread Herve Quiroz
Hi, Maybe I am mistaken but how do you find files according to several properties (let's say depth AND type) ? I believe you have to build your own FileSelector implementation. As I am using commons-vfs in a new project, and as I will eventually need some kind of composite FileSelector, I am wil

Re: [CLI] 2.0 Proposal

2003-08-18 Thread Herve Quiroz
Rob, Basically, the Pre- and Post- stuff were to allow the automation of some task(s). I had submitted the example of setting system properties according to command line arguments. Quick link: http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=104697467907519&w=2 To summarize, (post) predica

Re: [CLI] 2.0 Proposal

2003-08-18 Thread Herve Quiroz
Hi Rob, Months ago, I suggested using [functor] for such a purpose. Don't know if you remember. Here's a quick link: http://marc.theaimsgroup.com/?l=jakarta-commons-dev&m=104730670828791&w=2 And you may still provide standard type checkers and converters using the proposed framework. I underst

Re: [CLI] Switches ?

2003-07-03 Thread Herve Quiroz
h-ssl")); > } > > Thus the complex ./configure style options such as "--with-ssl=/usr/share/ssl" / > "--without-ssl" would be supported out of the box. > The implementation should be pretty straight forward - new classes SwitchOption & > SwitchBu

[CLI] Switches ?

2003-07-01 Thread Herve Quiroz
Hi, As you are still in design stage for CLI 2.0, I thought I might just submit another feature that is used by command line parsers for some apps: switches. In CLI, the PREFIX for a command-line option is '-' but may be overriden to become anything else. Some apps have several different prefix

Re: [CLI] Version 2.0 - API

2003-03-11 Thread Herve Quiroz
John, I'll be happy to contribute. Unfortunately, I can't test the CLI-2 API at the moment. All projects I'm involved in need RELEASE stuff for dependencies. As soon as I get time to work on my own projects, I'll switch them to CLI-2 which seems (from what I've seen from the API docs) quite stra

Re: [CLI] Version 2.0 - API

2003-03-10 Thread Herve Quiroz
I described in this mail). What do you think of it ? Herve On Thu, 6 Mar 2003, Herve Quiroz wrote: > > > On Thu, 6 Mar 2003, John Keyes wrote: > > > > Now speaking of something not closely related, I remember reading on this > > > list something about OptionGroup that

Re: [CLI] Version 2.0 - API

2003-03-06 Thread Herve Quiroz
Hi Michael, On Wed, 5 Mar 2003, Michael Lanzetta wrote: > immediate problem, but ideally it would be nice to allow for the execution > of a functor on the sighting of the option, and on each argument. > Something like: > > OptionBuilder.onOption(OptionFunctor) > ArgumentBuilder.onValue(ArgumentFu

Re: [Configuration] subset doesn't include defaults

2003-02-19 Thread Herve Quiroz
Hi Karl, You mean to add a new method ? Configuration subset(boolean includeDefaults); Nice. But that means it should be added in the interface, so we need to patch every implementation made so far. Anyway, I think this is an interesting feature, worth implementing. And API isn't frozen yet IIRC

Re: [collections] filtering and splitting collections

2003-02-11 Thread Herve Quiroz
Hi, Well, I am not a commiter but I will give my opinion on the subject anyway. I am not a fan of OUT parameters in method calls. So I would be in favor of (c). First because (a) would mean API change. Also the returned Collection could be mistaken as the good ones from the collection given in par

[configuration] [SUBMIT] ConfigurationUtils

2003-01-24 Thread Herve Quiroz
any * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. */ import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Tests t

Re: [configuration] [SUBMIT] ConfigurationComparator and relatedclasses

2003-01-24 Thread Herve Quiroz
Oups, I just noticed that even with 'set sw=4', vim does replace every 8 spaces occurrence by a tab (with my config anyway). So if you plan to commit it, maybe some search/replace will be necessary (or I can repost it clean if you want). Sorry. Herve. -- To unsubscribe, e-mail:

[configuration] [SUBMIT] ConfigurationComparator and related classes

2003-01-24 Thread Herve Quiroz
junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; /** * Tests the StrintConfigurationComparator class * * @author mailto:[EMAIL PROTECTED]";>Herve Quiroz */ public class TestStrictConfigurationComparator extends TestCase { protecte

[configuration] Javadoc commented version of Configuration.java

2003-01-15 Thread Herve Quiroz
Hi, I was starting to think about the subset/view stuff and realized that there were no javadoc for the Configuration interface. So I made it, mostly by copying it from the BaseConfiguration source. Also I detailed the subset method. Hope this helps. Regards, Herve ? src/java/org/apache/common

Re: [Configuration] How active is this module?

2003-01-10 Thread Herve Quiroz
Hi, To better advertise the project maybe someone could register it to freshmeat (http://www.freshmeat.net) which is the starting point for most open-source library/package search (that's where I go first anyway). There are already some Jakarta projects registered here (collections, log4j, ant...

Re: [configuration] My thoughts on subsets and defaults

2003-01-10 Thread Herve Quiroz
Hi Henning, On Thu, 9 Jan 2003, Henning P. Schmiedehausen wrote: > Hm. I'm pretty sure noone really thought about this as much as you > did. The configurations package is used most of the time to provide > simple access to properties keys and there has been some work for > XML. If you can unwind

[configuration] My thoughts on subsets and defaults

2003-01-09 Thread Herve Quiroz
Hi all, I used to use my own Configuration package, as well as my own logging and command-line arguments handling libraries. Recently I switched to log4j and jakarta-commons-cli. I was planing to migrate my current projects to jakarta-commons-configuration when I discovered some differences in th

[collections] Re: BoundedCollection

2002-11-22 Thread Herve Quiroz
utions made by many * individuals on behalf of the Apache Software Foundation. For more * information on the Apache Software Foundation, please see * <http://www.apache.org/>. * */ package org.apache.commons.collections; import java.util.Collection; /** * A BoundedCollection

[collections] BoundedCollection ?

2002-11-12 Thread Herve Quiroz
quick,simple} solution, please tell me. I had my own queue library working until I changed all my sources to use commons-collections just to realize I am stuck with this issue. Regards Herve Quiroz -- To unsubscribe, e-mail: <mailto:commons-dev-unsubscribe@;jakarta.apache.org> For