Re: Commons-Pool : BasePoolableObjectFactory - generification in the roadmap ?
In my opinion, it depends on the global policy in commons-pool about Java 1.4. Other commons project (Lang for example) are only supporting Java 1.5 in their next big version. On 16/02/2010 23:43, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kay, On 2/16/2010 5:31 PM, Kay Kay wrote: On 2/16/10 2:20 PM, Christopher Schultz wrote: Kay, (Any relation to Jay Kay? That's guy's cool) not exactly :) :( Maybe you could just wear a silly hat. That'd be enough. I meant - something along the lines of - PoolableObjectFactoryT { void activateObject(T obj); destroyObject(T obj); T makeObject(); void passivateObject(T obj); boolean validateObject(T obj); } Oh, I misunderstood your request: you mean that you want to use generics in commons-pool. I wasn't able to find any environment requirements for commons-pool, but I suspect that the developers would like commons-pool to be usable in pre-1.5 Java environments, where generic classes aren't available. I have to admit that I'm not a big fan of generics in the first place... just syntactic sugar that ends up making your code uglier than it would be with plain-old casting. And, in Java, you don't even get RTTI which is really too bad :( If you'd like to use commons-pool as a basis for your own tools, you can certainly modify the source code to add lots of and symbols if you want. Also, patches are always welcome :) - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkt7H6IACgkQ9CaO5/Lv0PD0hACfbGrUuEN4RKCH8o3EJGTaV9sv eWIAoIqM1pnMmwZcs6Wx1JY9+y1x1pdA =XQow -END PGP SIGNATURE- - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [configuration] Re: Space or single quote as a value in properties files
Please file abug in JIRA here : https://issues.apache.org/jira/browse/CONFIGURATION, I'm sure someone will take care of it :) Valentin. Le 05/02/2010 18:26, Asterios Katsifodimos a écrit : Thank you Oliver, However with some simple tests that I've ran, I saw that even XMLConfiguration does not support this feature. It would be nice to see that as an option in the Apache configuration module, at least for me, its been many times that I need such values in a configuration file. thank you again, -- Asterios On Thu, Feb 4, 2010 at 10:18 PM, Oliver Heger oliver.he...@oliver-heger.dewrote: Am 04.02.2010 17:42, schrieb Asterios Katsifodimos: Hi all, I would like to know if there is a way to set the value of a variable (key) to be the space character in a PropertiesConfiguration file. for example variable = could I use the double quotes to do that? From looking at the code it seems that it is not possible to define a space character as property value. All lines are trimmed after they were read. Unfortunately, double quotes are also not supported. I am not sure, would it make sense to add support for this feature? What would be the exact specification? Don't know whether this helps you, but with XMLConfiguration you can set space characters as property values. Oliver thank you, -- Asterios Katsifodimos INRIA Saclay France - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [NET] Require information about Apache commons net library
Le 03/02/2010 05:57, Harshwardhan Gunjotikar a écrit : Hi All, We are thinking of using Apache commons net library in our project to support FTP operations. We have some specific requirements and we tried to find out if the library supports those. However, we couldn't find any concrete information on the library home page. We also tried to search in the archived user mailing list. Could anybody please let us know if the library supports below requirements. Simple Yes/No answers will also help us greatly. 1 Supports RFC 959 - Yes (see list of commands : http://commons.apache.org/net/apidocs/org/apache/commons/net/ftp/FTPCommand.html) 2 Supports RFC 2228 - I don't see them in the command list, but you could use http://commons.apache.org/net/apidocs/org/apache/commons/net/ftp/FTP.html#sendCommand(java.lang.String) to send commands directly to the server. I don't know if the result will be ok, however. 3 Supports RFC 4217 I think http://commons.apache.org/net/apidocs/org/apache/commons/net/ftp/FTPSClient.html would work, but I'm not sure 4 Compatible with Sun and IBM JDK 1.6 5 Supports SOCKS proxy (Our understanding is that it supports FTP proxy) Net uses java.net.Socket, so yes. See here : http://wiki.apache.org/jakarta-commons/Net/FrequentlyAskedQuestions 6 Supports digest authentication (From what we understand from the available documents, it supports basic authentication) 7 Supports IPV4 and IPV6 Thanks in advance. Regards, Gunjotikar - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org