|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.solarmetric.conf.ConfigurationImpl
Field Summary | |
protected org.apache.commons.logging.LogFactory |
logFactory
|
Fields inherited from interface com.solarmetric.conf.Configuration |
ATTRIBUTE_ALLOWED_VALUES, ATTRIBUTE_TYPE |
Fields inherited from interface java.beans.BeanInfo |
ICON_COLOR_16x16, ICON_COLOR_32x32, ICON_MONO_16x16, ICON_MONO_32x32 |
Constructor Summary | |
ConfigurationImpl()
|
|
ConfigurationImpl(boolean)
|
Method Summary | |
protected BooleanValue |
addBoolean(String)
|
protected DoubleValue |
addDouble(String)
|
protected IntValue |
addInt(String)
|
protected PluginValue |
addPlugin(String)
|
protected PluginListValue |
addPluginList(String)
|
protected StringValue |
addString(String)
|
protected StringListValue |
addStringList(String)
|
protected Value |
addValue(Value)
|
protected void |
assertNotFrozen()
|
void |
close()
Free the resources used by this object. |
boolean |
equals(Object)
|
void |
fromProperties(Properties)
Set this Configuration via the given Properties. |
void |
fromStream(InputStream)
|
BeanInfo[] |
getAdditionalBeanInfo()
|
BeanDescriptor |
getBeanDescriptor()
|
int |
getDefaultEventIndex()
|
int |
getDefaultPropertyIndex()
|
EventSetDescriptor[] |
getEventSetDescriptors()
|
Image |
getIcon(int)
|
org.apache.commons.logging.Log |
getLog(String)
Return the log for the given category. |
org.apache.commons.logging.LogFactory |
getLogFactory()
The log factory. |
MethodDescriptor[] |
getMethodDescriptors()
|
protected String |
getProductName()
|
PropertyDescriptor[] |
getPropertyDescriptors()
|
Value |
getValue(String)
Return a Value for a given property. |
Value[] |
getValues()
Return the set of all Value s. |
int |
hashCode()
|
boolean |
isCaching()
Return whether Properties conversions are cached. |
boolean |
isFrozen()
Return true if this Configuration has been frozen. |
boolean |
loadDefaults()
|
void |
readExternal(ObjectInput)
|
void |
setCaching(boolean)
Set whether to optimize Properties conversion
by caching Value states. |
void |
setFrozen(boolean)
Lock down the configuration's state. |
void |
setLog(String,
org.apache.commons.logging.Log)
Set the log for the given category. |
void |
setLogFactory(org.apache.commons.logging.LogFactory)
log factory. |
void |
setProperties(String)
|
void |
setPropertiesFile(File)
|
Properties |
toProperties()
A Properties representation of this Configuration. |
void |
writeExternal(ObjectOutput)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected org.apache.commons.logging.LogFactory logFactory
Constructor Detail |
public ConfigurationImpl()
public ConfigurationImpl(boolean)
Method Detail |
public void setLogFactory(org.apache.commons.logging.LogFactory)
Configuration
setLogFactory
in interface Configuration
public org.apache.commons.logging.LogFactory getLogFactory()
Configuration
getLogFactory
in interface Configuration
public void setLog(String, org.apache.commons.logging.Log)
Configuration
setLog
in interface Configuration
com.solarmetric.conf.Configuration
Configuration.setLogFactory(org.apache.commons.logging.LogFactory)
public org.apache.commons.logging.Log getLog(String)
Configuration
getLog
in interface Configuration
com.solarmetric.conf.Configuration
Configuration.getLogFactory()
public Value getValue(String)
Configuration
Value
for a given property.getValue
in interface Configuration
public Value[] getValues()
Configuration
Value
s.getValues
in interface Configuration
public BeanInfo[] getAdditionalBeanInfo()
getAdditionalBeanInfo
in interface BeanInfo
public BeanDescriptor getBeanDescriptor()
getBeanDescriptor
in interface BeanInfo
public int getDefaultEventIndex()
getDefaultEventIndex
in interface BeanInfo
public int getDefaultPropertyIndex()
getDefaultPropertyIndex
in interface BeanInfo
public EventSetDescriptor[] getEventSetDescriptors()
getEventSetDescriptors
in interface BeanInfo
public Image getIcon(int)
getIcon
in interface BeanInfo
public MethodDescriptor[] getMethodDescriptors()
getMethodDescriptors
in interface BeanInfo
public PropertyDescriptor[] getPropertyDescriptors()
getPropertyDescriptors
in interface BeanInfo
public void close()
Configuration
close
in interface Configuration
protected String getProductName()
public boolean loadDefaults()
public void setCaching(boolean)
Configuration
Properties
conversion
by caching Value
states.setCaching
in interface Configuration
public boolean isCaching()
Configuration
Properties
conversions are cached.isCaching
in interface Configuration
public void setFrozen(boolean)
Configuration
IllegalStateException
.setFrozen
in interface Configuration
public boolean isFrozen()
Configuration
isFrozen
in interface Configuration
public Properties toProperties()
Configuration
toProperties
in interface Configuration
public void fromProperties(Properties)
Configuration
fromProperties
in interface Configuration
public void fromStream(InputStream) throws IOException
public void setProperties(String) throws IOException
public void setPropertiesFile(File) throws IOException
protected void assertNotFrozen()
public boolean equals(Object)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void readExternal(ObjectInput) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
public void writeExternal(ObjectOutput) throws IOException
writeExternal
in interface Externalizable
protected Value addValue(Value)
protected StringValue addString(String)
protected IntValue addInt(String)
protected DoubleValue addDouble(String)
protected BooleanValue addBoolean(String)
protected StringListValue addStringList(String)
protected PluginValue addPlugin(String)
protected PluginListValue addPluginList(String)
|
SolarMetric Kodo JDO 3.0.3 generated on February 20 2004 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |