Collection of simple utility methods used to get and set properties in the system properties. The only reason this class is needed is because all of the methods in NSProperties have been deprecated. This is a wee bit annoying. The usual method is to have a method like getBoolean
off of Boolean which would resolve the System property as a Boolean object. Properties can be set in all the following places: - Properties in a bundle Resources directory
- Properties.dev in a bundle Resources directory
- Properties.username in a bundle Resources directory
- ~/Library/WebObjects.properties file
- in the eclipse launcher or on the command-line
@property er.extensions.ERXProperties.RetainDefaultsEnabled システム・プロパティーのセットや取得するユーティリティー・メソッド集です。 このクラスが作成されている理由は、NSPropertiesの全メソッドが廃止になったからです。 普通はシステム・プロパティーの Boolean オブジェクトを扱う為に getBoolean
などがあればいいのです。
@property er.extensions.ERXProperties.RetainDefaultsEnabled
@property NSProperties.useLoadtimeAppSpecifics Default is true.TODO - Neither of these property names are standard. Should be camel-case and proper prefix. TODO - What character sets can you use in property names? Only ISO-8859-1? UTF-8? TODO - If this would fallback to calling the System getProperty, we could ask that Project Wonder frameworks only use this class.