public abstract class AbstractConfigurationImpl
extends java.lang.Object
Constructor and Description |
---|
AbstractConfigurationImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String | getComponentId()
Gets the component Id
|
protected java.util.Map | getConfigMapping()
Gets the configuration mapping registry
|
java.lang.String | getConfigurationFileName()
Gets the configuration file name of this object represents to.
|
java.lang.String | getConfigurationFilePath()
Returns the file path to the configuration files.
|
abstract java.lang.String | getInterfaceName()
Each configuration is associated with an interfacename, to be used to cast down the configuration object when it is retrieved.
|
protected long | getLastModified()
Returns the time the configuration file was last modified
|
abstract boolean | isOverridable()
Returns a boolean flag to indicate if the configuration file is an overridable configuration.
|
protected boolean | loadConfig(java.io.File aConfigFile)
Loads the component configuration file.
|
protected abstract void | loadConfig(java.io.InputStream aConfigFile)
Loads the component configuration based on an InputStream object of the configuration file
|
protected void | setComponentId(java.lang.String astrComponentId)
Sets the component Id
|
protected void | setConfigMapping(java.util.Map amapConfigMapping)
Sets the Map object which contains the registered configuration mapping.
|
protected void | setConfigurationFileName(java.lang.String astrConfigFileName)
Sets the configuration file name of this object represents to.
|
void | setConfigurationFilePath(java.lang.String aConfigurationFilePath)
Sets the location of the configuration files.
|
protected void | setLastModified(long time)
Sets the last modified time of the configuration file
|
public java.lang.String getComponentId()
protected void setComponentId(java.lang.String astrComponentId)
public java.lang.String getConfigurationFileName()
protected void setConfigurationFileName(java.lang.String astrConfigFileName)
protected java.util.Map getConfigMapping()
protected void setConfigMapping(java.util.Map amapConfigMapping)
protected abstract void loadConfig(java.io.InputStream aConfigFile) throws java.lang.Exception
protected boolean loadConfig(java.io.File aConfigFile) throws java.lang.Exception
public abstract java.lang.String getInterfaceName()
protected void setLastModified(long time)
protected long getLastModified()
public abstract boolean isOverridable()
public final java.lang.String getConfigurationFilePath()
public final void setConfigurationFilePath(java.lang.String aConfigurationFilePath)