com.scooterframework.autoloader
Class AutoLoaderConfig

java.lang.Object
  extended by com.scooterframework.autoloader.AutoLoaderConfig
All Implemented Interfaces:
java.util.Observer

public class AutoLoaderConfig
extends java.lang.Object
implements java.util.Observer

AutoLoaderConfig class configs autoloading related properties.


Field Summary
static java.lang.String DATA_PROPERTIES_FILE
           
static java.lang.String GENERATED_MODEL_CLASS_PREFIX
           
static java.lang.String GENERATED_MODEL_CLASS_SUFFIX
           
 
Method Summary
 java.lang.String getClassPath()
           
static AutoLoaderConfig getInstance()
           
 java.lang.String getOutputClassLocation()
           
 long getPeriod()
           
 java.lang.String getPluginsLocation()
           
 java.util.Properties getProperties()
          Returns all properties.
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Returns a String property corresponding to a key.
 java.lang.String getReferencesLocation()
           
 java.lang.String getSourcePath()
           
 boolean notAllowedToChange(java.lang.String className)
           
 void registerFileMonitor(FileMonitor fm)
           
 void setProperty(java.lang.String key, java.lang.String value)
          Sets a property.
 void update(java.util.Observable o, java.lang.Object arg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATA_PROPERTIES_FILE

public static final java.lang.String DATA_PROPERTIES_FILE
See Also:
Constant Field Values

GENERATED_MODEL_CLASS_PREFIX

public static final java.lang.String GENERATED_MODEL_CLASS_PREFIX
See Also:
Constant Field Values

GENERATED_MODEL_CLASS_SUFFIX

public static final java.lang.String GENERATED_MODEL_CLASS_SUFFIX
See Also:
Constant Field Values
Method Detail

getInstance

public static AutoLoaderConfig getInstance()

update

public void update(java.util.Observable o,
                   java.lang.Object arg)
Specified by:
update in interface java.util.Observer

getProperties

public java.util.Properties getProperties()
Returns all properties.


getProperty

public java.lang.String getProperty(java.lang.String key,
                                    java.lang.String defaultValue)
Returns a String property corresponding to a key. The method returns the default value argument if the property is not found.


setProperty

public void setProperty(java.lang.String key,
                        java.lang.String value)
Sets a property.


getPeriod

public long getPeriod()

getClassPath

public java.lang.String getClassPath()

getOutputClassLocation

public java.lang.String getOutputClassLocation()

getSourcePath

public java.lang.String getSourcePath()

getPluginsLocation

public java.lang.String getPluginsLocation()

getReferencesLocation

public java.lang.String getReferencesLocation()

notAllowedToChange

public boolean notAllowedToChange(java.lang.String className)

registerFileMonitor

public void registerFileMonitor(FileMonitor fm)