[Configuration] FileChangedReloadingStrategy Not Working?

2005-07-27 Thread Lukas Bradley
Is there anything in the following code block that would prevent the FileChangedReloadingStrategy from functioning correctly? It is declared just after member variables within the class itself. The properties load correctly utilizing getString(), getFloat(), etc. However, they do not

Re: [Configuration] FileChangedReloadingStrategy Not Working?

2005-07-27 Thread Lukas Bradley
Lukas Bradley wrote: Is there anything in the following code block that would prevent the FileChangedReloadingStrategy from functioning correctly? It is declared just after member variables within the class itself. The properties load correctly utilizing getString(), getFloat(), etc

Re: [Configuration] FileChangedReloadingStrategy Not Working?

2005-07-27 Thread Lukas Bradley
Is there anything in the following code block that would prevent the FileChangedReloadingStrategy from functioning correctly? It is declared just after member variables within the class itself. The properties load correctly utilizing getString(), getFloat(), etc. However, they do not

Re: [Configuration] FileChangedReloadingStrategy Not Working?

2005-07-27 Thread Lukas Bradley
Christian Hufgard wrote: as far as i remember, there are allready some bugs concerning this problem in bugzilla. I had the same problem and solved it, by manually calling config.setBasePath(String path) with the propertyfile's basepath. Think there are also some other fixes in Bugzilla posted.

Re: [Configuration] FileChangedReloadingStrategy Not Working?

2005-07-27 Thread Lukas Bradley
Hi Lukas, what version of Commons Configuration did you use ? The 1.1 or a nightly build ? 1.1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Translating Query String into Map and vice versa?

2005-04-08 Thread Lukas Bradley
Also, note that a Map is not sufficient since you could have several arguments for one key. Nice catch. Forgot about that. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [Configuration] CompositeConfiguration - setting FileChangedReloadingStrategy on each XMLConfiguration

2005-04-08 Thread Lukas Bradley
[snipped Java code on manual setting of all configuration files to reload strat] I would like to request two things. First, a DTD for the ConfigurationFactory XML file. Second, the ability to do something like this: configuration !-- Reload usergui every -- properties

Translating Query String into Map and vice versa?

2005-04-07 Thread Lukas Bradley
I thought this functionality was included in BeanUtils, but apparently I'm wrong. I'm looking for methods to translate web query strings into a Map, and a Map of name/value pairs into a String. Of course, I also would like the method to handle URLEncoding and Decoding. It would be quick to

Runtime.exec() Utilities?

2005-03-30 Thread Lukas Bradley
Is there ANYTHING out there that can help manage executing system commands to batch input, capture output, and generally not make a mess of things on different platforms? I'm pulling my hair out. If no one knows of anything, I might write an API description and propose it be included in

Re: Runtime.exec() Utilities?

2005-03-30 Thread Lukas Bradley
ANT gives you a selection of well-tested tasks of all kinds, combinable and system-independent. Give it a try. HTH, This looks like it might be perfect: org.apache.tools.ant.taskdefs.Execute Execute(ExecuteStreamHandler streamHandler, ExecuteWatchdog watchdog) However, I don't see a stream

Re: Runtime.exec() Utilities?

2005-03-30 Thread Lukas Bradley
How about Commons-Launcher [1]? Commons Launcher seems very geared toward launching Java processes. I am attempting to launch a non-Java related binary, with versions on Windows and LINUX systems. So far, Ant's Execute task is working nicely. However, I'm using an interium batch/shell script

Money Class?

2005-03-17 Thread Lukas Bradley
I'm running (back) into the age old question of representing monetary values in Java. Should I use a float and risk floating point errors, should I use int and hold cents (or pieces of the currency) or should I create a Money Class to handle both of these problems but create bulkier code?

Re: Money Class?

2005-03-17 Thread Lukas Bradley
I always use BigDecimal for money, and convert to required formats when viewing. Otherwise, if you need to deal with other currencies, you might run into trouble. Do you limit (scale) your BigDecimal to 2 places? If so, which constructor do you use? Thanks for the reply.

[IO] Commons IO 1.1RC1 ?

2005-03-08 Thread Lukas Bradley
Is there a release date set for 1.1 RC1 or Final? The API as shown on http://jakarta.apache.org/commons/io/apidocs/index.html is the 1.1-dev version. Some users (such as myself) might browse it for needed functionality, find what they are looking for, but not notice it is missing from the 1.0

[beanutils] BeanUtils.describe() and Lists of Complex Types

2005-01-07 Thread Lukas Bradley
Forgive my ignorance, but I am attempting to use BeanUtils.describe() on a custom object that contains a List of other complex objects. My getList() method is being described, but is only returning the toString() value of my object. For example, a list with two BeanSerializerData2Test objects

Re: Properties Utility or Solution?

2004-01-03 Thread Lukas Bradley
on various strategeis to handle this have been bounced around. We will probably try and release 1.0 without that, to give us more time to come up with something good, but any help in that direction would be aprreciated. This looks excellent. I'll get back to the group if I have any ideas about

Thread Pool?

2003-12-04 Thread Lukas Bradley
Is there a commons thread pool? I've seen the Excalibur one, but it seems Commons should have something like this. Lukas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]