|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.turbine.services.resources.TurbineResources
This is a static class for defining the default Turbine configuration keys used by core Turbine components.
It also extends the basic static accessor class to the
ResourcesService
so that you directly access the
properties through this class
Field Summary | |
static java.lang.String |
ACTION_CACHE_SIZE_KEY
|
static java.lang.String |
DB_DRIVER_KEY
|
static java.lang.String |
DB_EXPIRYTIME_KEY
|
static java.lang.String |
DB_IDBROKER_CLEVERQUANTITY
|
static java.lang.String |
DB_IDBROKER_PREFETCH
|
static java.lang.String |
DB_MAXCONNECTIONS_KEY
|
static java.lang.String |
DB_PASSWORD_KEY
|
static java.lang.String |
DB_URL_KEY
|
static java.lang.String |
DB_USERNAME_KEY
|
static java.lang.String |
FILE_SERVER
|
static java.lang.String |
LAYOUT_CACHE_SIZE_KEY
|
static java.lang.String |
LOGIN_ERROR
|
static java.lang.String |
LOGIN_MESSAGE
|
static java.lang.String |
LOGIN_MESSAGE_NOSCREEN
|
static java.lang.String |
LOGOUT_MESSAGE
|
static java.lang.String |
MAIL_SERVER_KEY
|
static java.lang.String |
MAX_FILE_SIZE_KEY
|
static java.lang.String |
MODULE_CACHE_KEY
|
static java.lang.String |
MODULE_PACKAGES_KEY
|
static java.lang.String |
NAVIGATION_CACHE_SIZE_KEY
|
static java.lang.String |
PAGE_CACHE_SIZE_KEY
|
static java.lang.String |
SCREEN_CACHE_SIZE_KEY
|
static java.lang.String |
USER_CLASS_KEY
|
Constructor Summary | |
TurbineResources()
|
Method Summary | |
static boolean |
getBoolean(java.lang.String name)
The purpose of this method is to get the configuration resource with the given name as a boolean value. |
static boolean |
getBoolean(java.lang.String name,
boolean def)
The purppose of this method is to get the configuration resource with the given name as a boolean value, or a default value. |
static org.apache.commons.configuration.Configuration |
getConfiguration()
Get the configuration. |
static org.apache.commons.configuration.Configuration |
getConfiguration(java.lang.String prefix)
The purpose of this method is to extract a subset configuration sharing a common name prefix. |
static double |
getDouble(java.lang.String name)
The purpose of this method is to get the configuration resource with the given name as a double. |
static double |
getDouble(java.lang.String name,
double def)
The purpose of this method is to get the configuration resource with the given name as a double, or a default value. |
static float |
getFloat(java.lang.String name)
The purpose of this method is to get the configuration resource with the given name as a float. |
static float |
getFloat(java.lang.String name,
float def)
The purpose of this method is to get the configuration resource with the given name as a float, or a default value. |
static int |
getInt(java.lang.String name)
The purpose of this method is to get the configuration resource with the given name as an integer. |
static int |
getInt(java.lang.String name,
int def)
The purpose of this method is to get the configuration resource with the given name as an integer, or a default value. |
static java.util.Iterator |
getKeys()
Get the list of the keys contained in the configuration repository. |
static java.util.Iterator |
getKeys(java.lang.String prefix)
Get the list of the keys contained in the configuration repository that match the specified prefix. |
static long |
getLong(java.lang.String name)
The purpose of this method is to get the configuration resource with the given name as a long. |
static long |
getLong(java.lang.String name,
long def)
The purpose of this method is to get the configuration resource with the given name as a long, or a default value. |
static ResourceService |
getResources(java.lang.String prefix)
The purpose of this method is to extract a subset of configuration resources sharing a common name prefix. |
protected static ResourceService |
getService()
Utility method for accessing the service implementation |
static java.lang.String |
getString(java.lang.String name)
The purpose of this method is to get the configuration resource with the given name as a string. |
static java.lang.String |
getString(java.lang.String name,
java.lang.String def)
The purpose of this method is to get the configuration resource with the given name as a string, or a default value. |
static java.lang.String[] |
getStringArray(java.lang.String name)
The purpose of this method is to get the configuration resource with the given name as a string array. |
static java.util.Vector |
getVector(java.lang.String name)
The purpose of this method is to get the configuration resource with the given name as a vector. |
static java.util.Vector |
getVector(java.lang.String name,
java.util.Vector def)
The purpose of this method is to get the configuration resource with the given name as a vector, or a default value. |
static void |
setProperty(java.lang.String key,
java.lang.String value)
Set a property in with a key=value pair. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String MAIL_SERVER_KEY
public static final java.lang.String MODULE_CACHE_KEY
public static final java.lang.String MODULE_PACKAGES_KEY
public static final java.lang.String ACTION_CACHE_SIZE_KEY
public static final java.lang.String LAYOUT_CACHE_SIZE_KEY
public static final java.lang.String NAVIGATION_CACHE_SIZE_KEY
public static final java.lang.String PAGE_CACHE_SIZE_KEY
public static final java.lang.String SCREEN_CACHE_SIZE_KEY
public static final java.lang.String USER_CLASS_KEY
public static final java.lang.String MAX_FILE_SIZE_KEY
public static final java.lang.String DB_DRIVER_KEY
public static final java.lang.String DB_URL_KEY
public static final java.lang.String DB_USERNAME_KEY
public static final java.lang.String DB_PASSWORD_KEY
public static final java.lang.String DB_MAXCONNECTIONS_KEY
public static final java.lang.String DB_EXPIRYTIME_KEY
public static final java.lang.String FILE_SERVER
public static final java.lang.String LOGIN_MESSAGE
public static final java.lang.String LOGIN_ERROR
public static final java.lang.String LOGIN_MESSAGE_NOSCREEN
public static final java.lang.String LOGOUT_MESSAGE
public static final java.lang.String DB_IDBROKER_CLEVERQUANTITY
public static final java.lang.String DB_IDBROKER_PREFETCH
Constructor Detail |
public TurbineResources()
Method Detail |
protected static ResourceService getService()
public static void setProperty(java.lang.String key, java.lang.String value)
String
- keyString
- valuepublic static boolean getBoolean(java.lang.String name)
name
- The resource name.public static boolean getBoolean(java.lang.String name, boolean def)
name
- The resource name.def
- The default value of the resource.public static double getDouble(java.lang.String name)
name
- The resoource name.public static double getDouble(java.lang.String name, double def)
name
- The resource name.def
- The default value of the resource.public static float getFloat(java.lang.String name)
name
- The resource name.public static float getFloat(java.lang.String name, float def)
name
- The resource name.def
- The default value of the resource.public static int getInt(java.lang.String name)
name
- The resource name.public static int getInt(java.lang.String name, int def)
name
- The resource name.def
- The default value of the resource.public static java.util.Iterator getKeys()
public static java.util.Iterator getKeys(java.lang.String prefix)
prefix
- A String prefix to test against.public static long getLong(java.lang.String name)
name
- The resource name.public static long getLong(java.lang.String name, long def)
name
- The resource name.def
- The default value of the resource.public static java.lang.String getString(java.lang.String name)
name
- The resource name.public static java.lang.String getString(java.lang.String name, java.lang.String def)
name
- The resource name.def
- The default value of the resource.public static java.lang.String[] getStringArray(java.lang.String name)
name
- The resource name.public static java.util.Vector getVector(java.lang.String name)
name
- The resource name.public static java.util.Vector getVector(java.lang.String name, java.util.Vector def)
name
- The resource name.def
- The default value of the resource.public static ResourceService getResources(java.lang.String prefix)
prefix
- the common name prefixpublic static org.apache.commons.configuration.Configuration getConfiguration()
public static org.apache.commons.configuration.Configuration getConfiguration(java.lang.String prefix)
prefix
- the common name prefix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |