|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.laures.cewolf.Configuration
public class Configuration
This class represents the configuration of the Cewolf framework. It is designed as singleton and resists in application context.
Field Summary | |
---|---|
private boolean |
debugged
|
private static java.lang.String |
DEFAULT_OVERLIB_URL
|
private static java.lang.String |
DEFAULT_STORAGE
|
static java.lang.String |
KEY
|
private java.lang.String |
overlibURL
|
private java.util.Map |
parameters
|
private Storage |
storage
|
private java.lang.String |
storageClassName
|
Constructor Summary | |
---|---|
private |
Configuration()
|
protected |
Configuration(javax.servlet.ServletContext ctx)
package protected constructor triggered by servlet |
Method Summary | |
---|---|
static Configuration |
getInstance(javax.servlet.ServletContext ctx)
Factory method. |
java.lang.String |
getOverlibURL()
Returns the location of the overlib.js relative to webapp's root. |
java.util.Map |
getParameters()
Get the initialization parameters from Cewolf servlet. |
Storage |
getStorage()
|
private void |
initStorage(javax.servlet.ServletContext ctx)
|
boolean |
isDebugged()
Checks if debugging is configured to be turned on. |
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 KEY
private static final java.lang.String DEFAULT_OVERLIB_URL
private static final java.lang.String DEFAULT_STORAGE
private java.lang.String overlibURL
private boolean debugged
private java.lang.String storageClassName
private Storage storage
private java.util.Map parameters
Constructor Detail |
---|
protected Configuration(javax.servlet.ServletContext ctx)
private Configuration()
Method Detail |
---|
private void initStorage(javax.servlet.ServletContext ctx) throws CewolfException
CewolfException
public static Configuration getInstance(javax.servlet.ServletContext ctx)
ctx
- the servlet context from where to retrieve the Configuration
object.
public boolean isDebugged()
debug
in web.xml.
true
if a debugging is on, else false
public java.lang.String getOverlibURL()
overliburl
in web.xml. Defaults to
overlib.js
public Storage getStorage()
public java.util.Map getParameters()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |