com.scooterframework.web.route
Class RouteConfig

java.lang.Object
  extended by com.scooterframework.web.route.RouteConfig
All Implemented Interfaces:
java.util.Observer

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

RouteConfig class configs the web application during startup time.


Field Summary
static java.lang.String DATA_PROPERTIES_FILE
           
static java.lang.String DEFAULT_VALUE_autoRest
           
 
Method Summary
 boolean allowAutoREST()
          Checks if automatically generating restful routes with default built-in controller class.
static RouteConfig getInstance()
           
 java.util.Properties getProperties()
          Returns all properties.
 java.lang.String getProperty(java.lang.String key)
          Returns a String property corresponding to a key.
 java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
          Returns a String property corresponding to a key.
 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

DEFAULT_VALUE_autoRest

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

getInstance

public static RouteConfig 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)
Returns a String property corresponding to a key.


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.


allowAutoREST

public boolean allowAutoREST()
Checks if automatically generating restful routes with default built-in controller class.