net.sourceforge.blogentis.utils
Class MappedConfiguration

java.lang.Object
  extended byorg.apache.commons.configuration.AbstractConfiguration
      extended byorg.apache.commons.configuration.BaseConfiguration
          extended bynet.sourceforge.blogentis.utils.MappedConfiguration
All Implemented Interfaces:
org.apache.commons.configuration.Configuration

public class MappedConfiguration
extends org.apache.commons.configuration.BaseConfiguration

Class that keeps the configuration data of a blog in an in-memory HashMap.

Author:
abas

Nested Class Summary
 
Nested classes inherited from class org.apache.commons.configuration.AbstractConfiguration
 
Field Summary
protected  boolean modified
           
protected  BaseConfigurablePeer peer
           
protected  org.apache.torque.om.ObjectKey primaryKey
           
 
Fields inherited from class org.apache.commons.configuration.AbstractConfiguration
END_TOKEN, START_TOKEN
 
Constructor Summary
MappedConfiguration(BaseConfigurable obj)
           
 
Method Summary
protected  void addPropertyDirect(java.lang.String key, java.lang.Object obj)
           
protected  void initFromBlog(BaseConfigurable obj)
           
protected  java.lang.String interpolate(java.lang.String base)
           
 boolean isModified()
           
protected  java.util.List processString(java.lang.String token)
           
 void save()
           
 void saveTo(BaseConfigurable obj)
           
 void setList(java.lang.String key, java.util.List cont)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.commons.configuration.BaseConfiguration
clearProperty, containsKey, getKeys, getPropertyDirect, isEmpty
 
Methods inherited from class org.apache.commons.configuration.AbstractConfiguration
addProperty, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getBoolean, getByte, getByte, getByte, getDelimiter, getDouble, getDouble, getDouble, getFloat, getFloat, getFloat, getInt, getInt, getInteger, getKeys, getList, getList, getLong, getLong, getLong, getProperties, getProperties, getProperty, getShort, getShort, getShort, getString, getString, getStringArray, getVector, getVector, interpolateHelper, isThrowExceptionOnMissing, setDelimiter, setProperty, setThrowExceptionOnMissing, split, subset
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

peer

protected BaseConfigurablePeer peer

primaryKey

protected org.apache.torque.om.ObjectKey primaryKey

modified

protected boolean modified
Constructor Detail

MappedConfiguration

public MappedConfiguration(BaseConfigurable obj)
Method Detail

initFromBlog

protected void initFromBlog(BaseConfigurable obj)
                     throws java.lang.Exception
Throws:
java.lang.Exception

saveTo

public void saveTo(BaseConfigurable obj)
            throws java.io.IOException
Throws:
java.io.IOException

save

public void save()
          throws org.apache.torque.TorqueException
Throws:
org.apache.torque.TorqueException

addPropertyDirect

protected void addPropertyDirect(java.lang.String key,
                                 java.lang.Object obj)

processString

protected java.util.List processString(java.lang.String token)

interpolate

protected java.lang.String interpolate(java.lang.String base)

setList

public void setList(java.lang.String key,
                    java.util.List cont)

toString

public java.lang.String toString()

isModified

public boolean isModified()


Copyright © 2003-2004 SourceForge.net. All Rights Reserved.