| java.lang.Object net.myvietnam.mvncore.configuration.AbstractConfiguration net.myvietnam.mvncore.configuration.BaseConfiguration net.myvietnam.mvncore.configuration.BasePathConfiguration net.myvietnam.mvncore.configuration.BasePropertiesConfiguration net.myvietnam.mvncore.configuration.ClassPropertiesConfiguration
ClassPropertiesConfiguration | public class ClassPropertiesConfiguration extends BasePropertiesConfiguration implements Configuration(Code) | | Loads the configuration from the classpath utilizing a specified class to get
the classloader from. The properties file will be attempted to be loaded
first from the classes package directory and then from the class path in
general.
This class does not support an empty constructor and saving of a
synthesized properties file. Use PropertiesConfiguration for this.
See Also: net.myvietnam.mvncore.configuration.BasePropertiesConfiguration author: Henning P. Schmiedehausen version: $Id: ClassPropertiesConfiguration.java,v 1.3 2004/05/28 22:02:58 skoehler Exp $ |
Method Summary | |
public InputStream | getPropertyStream(String resourceName) Gets a resource relative to the supplied base class or
from the class loader if it is not found from the supplied base class. |
ClassPropertiesConfiguration | public ClassPropertiesConfiguration(Class baseClass, String resource) throws IOException(Code) | | Creates and loads an extended properties file from the Class
Resources. Uses the class loader.
Parameters: baseClass - The class providing the FileStream. Parameters: resource - The name of the Resource. throws: IOException - Error while loading the properties file |
ClassPropertiesConfiguration | public ClassPropertiesConfiguration(Class baseClass, String resource, Configuration defaults) throws IOException(Code) | | Creates and loads an extended properties file from the Class
Resources. Uses the class loader.
Parameters: baseClass - The class providing the FileStream. Parameters: resource - The name of the Resource. Parameters: defaults - Configuration defaults to use if key not in file throws: IOException - Error while loading the properties file |
ClassPropertiesConfiguration | public ClassPropertiesConfiguration(Class baseClass, String resource, String defaultFile) throws IOException(Code) | | Creates and loads an extended properties file from the Class
Resources. Uses the class loader.
Parameters: baseClass - The class providing the FileStream. Parameters: resource - The name of the Resource. Parameters: defaultFile - Configuration defaults to use if key not in file throws: IOException - Error while loading the properties file |
getPropertyStream | public InputStream getPropertyStream(String resourceName) throws IOException(Code) | | Gets a resource relative to the supplied base class or
from the class loader if it is not found from the supplied base class.
Parameters: resourceName - The resource Name An Input Stream throws: IOException - Error while loading the properties file |
Fields inherited from net.myvietnam.mvncore.configuration.BasePropertiesConfiguration | protected static String include(Code)(Java Doc)
|
Methods inherited from net.myvietnam.mvncore.configuration.AbstractConfiguration | public void addProperty(String key, Object token)(Code)(Java Doc) abstract protected void addPropertyDirect(String key, Object obj)(Code)(Java Doc) abstract public void clearProperty(String key)(Code)(Java Doc) abstract public boolean containsKey(String key)(Code)(Java Doc) public boolean getBoolean(String key)(Code)(Java Doc) public boolean getBoolean(String key, boolean defaultValue)(Code)(Java Doc) public Boolean getBoolean(String key, Boolean defaultValue)(Code)(Java Doc) public byte getByte(String key)(Code)(Java Doc) public byte getByte(String key, byte defaultValue)(Code)(Java Doc) public Byte getByte(String key, Byte defaultValue)(Code)(Java Doc) public double getDouble(String key)(Code)(Java Doc) public double getDouble(String key, double defaultValue)(Code)(Java Doc) public Double getDouble(String key, Double defaultValue)(Code)(Java Doc) public float getFloat(String key)(Code)(Java Doc) public float getFloat(String key, float defaultValue)(Code)(Java Doc) public Float getFloat(String key, Float defaultValue)(Code)(Java Doc) public int getInt(String key)(Code)(Java Doc) public int getInt(String key, int defaultValue)(Code)(Java Doc) public Integer getInteger(String key, Integer defaultValue)(Code)(Java Doc) abstract public Iterator getKeys()(Code)(Java Doc) public Iterator getKeys(String prefix)(Code)(Java Doc) public long getLong(String key)(Code)(Java Doc) public long getLong(String key, long defaultValue)(Code)(Java Doc) public Long getLong(String key, Long defaultValue)(Code)(Java Doc) public Properties getProperties(String key)(Code)(Java Doc) public Properties getProperties(String key, Properties defaults)(Code)(Java Doc) public Object getProperty(String key)(Code)(Java Doc) abstract protected Object getPropertyDirect(String key)(Code)(Java Doc) public short getShort(String key)(Code)(Java Doc) public short getShort(String key, short defaultValue)(Code)(Java Doc) public Short getShort(String key, Short defaultValue)(Code)(Java Doc) public String getString(String key)(Code)(Java Doc) public String getString(String key, String defaultValue)(Code)(Java Doc) public String[] getStringArray(String key)(Code)(Java Doc) public Vector getVector(String key)(Code)(Java Doc) public Vector getVector(String key, Vector defaultValue)(Code)(Java Doc) protected String interpolate(String base)(Code)(Java Doc) protected String interpolateHelper(String base, List priorVariables)(Code)(Java Doc) abstract public boolean isEmpty()(Code)(Java Doc) protected List processString(String token)(Code)(Java Doc) public void setProperty(String key, Object value)(Code)(Java Doc) public Configuration subset(String prefix)(Code)(Java Doc) final protected Boolean testBoolean(String value)(Code)(Java Doc)
|
|
|