org.nuiton.util.config
Class SimpleConfig<E extends Enum<E>>

java.lang.Object
  extended by org.nuiton.util.config.SimpleConfig<E>
All Implemented Interfaces:
Config<E>
Direct Known Subclasses:
SimpleIdentityConfig

Deprecated. since 1.2.2 (will be remove soon), use ApplicationConfig instead

@Deprecated
public class SimpleConfig<E extends Enum<E>>
extends Object
implements Config<E>

simple config implementation based on a Enum to obtain properties

Author:
tchemit

Field Summary
protected  Class<E> klass
          Deprecated.  
protected static org.apache.commons.logging.Log log
          Deprecated.  
protected  EnumMap<E,Object> properties
          Deprecated.  
protected  EnumSet<E> universe
          Deprecated.  
 
Constructor Summary
SimpleConfig(Class<E> klass)
          Deprecated.  
SimpleConfig(Class<E> klass, EnumMap<E,Object> properties)
          Deprecated.  
 
Method Summary
 void copyFrom(Object src)
          Deprecated.  
 void copyFrom(Object src, EnumSet<E> keys)
          Deprecated.  
 void copyTo(Object dst)
          Deprecated.  
 void copyTo(Object dst, EnumSet<E> keys)
          Deprecated.  
 EnumMap<E,Object> getProperties()
          Deprecated.  
 Object getProperty(E key)
          Deprecated.  
 EnumSet<E> getUniverse()
          Deprecated.  
 void setProperties(EnumMap<E,Object> properties)
          Deprecated.  
 void setProperty(E key, Object value)
          Deprecated.  
 String toString()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final org.apache.commons.logging.Log log
Deprecated. 

properties

protected EnumMap<E extends Enum<E>,Object> properties
Deprecated. 

universe

protected final EnumSet<E extends Enum<E>> universe
Deprecated. 

klass

protected final Class<E extends Enum<E>> klass
Deprecated. 
Constructor Detail

SimpleConfig

public SimpleConfig(Class<E> klass)
Deprecated. 

SimpleConfig

public SimpleConfig(Class<E> klass,
                    EnumMap<E,Object> properties)
Deprecated. 
Method Detail

getProperties

public EnumMap<E,Object> getProperties()
Deprecated. 
Specified by:
getProperties in interface Config<E extends Enum<E>>

getProperty

public Object getProperty(E key)
Deprecated. 
Specified by:
getProperty in interface Config<E extends Enum<E>>

getUniverse

public EnumSet<E> getUniverse()
Deprecated. 
Specified by:
getUniverse in interface Config<E extends Enum<E>>

setProperties

public void setProperties(EnumMap<E,Object> properties)
Deprecated. 
Specified by:
setProperties in interface Config<E extends Enum<E>>

setProperty

public void setProperty(E key,
                        Object value)
Deprecated. 
Specified by:
setProperty in interface Config<E extends Enum<E>>

copyFrom

public void copyFrom(Object src)
Deprecated. 
Specified by:
copyFrom in interface Config<E extends Enum<E>>

copyFrom

public void copyFrom(Object src,
                     EnumSet<E> keys)
Deprecated. 
Specified by:
copyFrom in interface Config<E extends Enum<E>>

copyTo

public void copyTo(Object dst)
Deprecated. 
Specified by:
copyTo in interface Config<E extends Enum<E>>

copyTo

public void copyTo(Object dst,
                   EnumSet<E> keys)
Deprecated. 
Specified by:
copyTo in interface Config<E extends Enum<E>>

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object


Copyright © 2004-2010 CodeLutin. All Rights Reserved.