Package digilib.conf
Class DigilibConfiguration
- java.lang.Object
-
- digilib.util.ParameterMap
-
- digilib.conf.DigilibConfiguration
-
- Direct Known Subclasses:
DigilibServletConfiguration
public class DigilibConfiguration extends ParameterMap
Class to hold the digilib servlet configuration parameters.- Author:
- casties
-
-
Field Summary
Fields Modifier and Type Field Description protected static boolean
isLoggingConfigured
protected static org.slf4j.Logger
logger
SLF4J compatible loggerstatic String
propertiesFileName
name of digilib properties file-
Fields inherited from class digilib.util.ParameterMap
options, params
-
-
Constructor Summary
Constructors Constructor Description DigilibConfiguration()
Default constructor defines all parameters and their default values.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure()
Configure digilib.static String
getClassVersion()
digilib versionString
getVersion()
void
readConfig()
read parameters from properties file digilib.properties in class path.protected boolean
setSpecialValueFromString(Parameter param, String value)
Set non-standard value in Parameter param.protected void
setupLogging()
Initialize the logging implementation.-
Methods inherited from class digilib.util.ParameterMap
cloneInstance, get, getAsBoolean, getAsFile, getAsFloat, getAsInt, getAsString, getInstance, getOptions, getParameters, getParams, getValue, hasOption, hasValue, initOptions, initParams, newParameter, newParameter, put, put, setOptions, setParams, setValue, setValue, setValue, setValueFromString
-
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
SLF4J compatible logger
-
isLoggingConfigured
protected static boolean isLoggingConfigured
-
propertiesFileName
public static String propertiesFileName
name of digilib properties file
-
-
Method Detail
-
getClassVersion
public static String getClassVersion()
digilib version- Returns:
- the version
-
getVersion
public String getVersion()
-
readConfig
public void readConfig()
read parameters from properties file digilib.properties in class path.
-
setSpecialValueFromString
protected boolean setSpecialValueFromString(Parameter param, String value)
Set non-standard value in Parameter param. Returns true if successful.- Parameters:
param
- the Parametervalue
- the value- Returns:
- true if successful
-
configure
public void configure()
Configure digilib. Sets up Factories and Singletons using the configuration.
-
setupLogging
protected void setupLogging()
Initialize the logging implementation.- Parameters:
context
-
-
-