Ralph Goers schrieb:

On Dec 20, 2008, at 7:32 AM, Oliver Heger wrote:

Just another point: There are other flat configuration implementations that do not extend BaseConfiguration, e.g. the web configurations or DatabaseConfiguration. AbstractFlagConfiguration was intended to serve as a common base class for all of these.

I noticed that. I wondered why they don't extend BaseConfiguration instead. I guess I'm not clear why both are needed.

Ralph

This is because of the different ways of storing configuration data. BaseConfiguration uses a map for storing its properties in memory. Other flat configurations use different storage mechanisms. For instance, DatabaseConfiguration directly accesses the database on each property access, the web configurations access their corresponding context objects.

AbstractFlatConfiguration was intended to implement the common functionality needed by flat configurations, but without defining a specific storage mechanism.

Oliver

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to