Package digilib.conf
Class DigilibConfiguration
java.lang.Object
digilib.util.ParameterMap
digilib.conf.DigilibConfiguration
- Direct Known Subclasses:
DigilibServletConfiguration
Class to hold the digilib servlet configuration parameters.
- Author:
- casties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static booleanprotected static final org.slf4j.LoggerSLF4J compatible loggerstatic Stringname of digilib properties fileFields inherited from class digilib.util.ParameterMap
options, params -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor defines all parameters and their default values. -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure digilib.static Stringdigilib versionvoidread parameters from properties file digilib.properties in class path.protected booleansetSpecialValueFromString(Parameter param, String value) Set non-standard value in Parameter param.protected voidInitialize 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 Details
-
logger
protected static final org.slf4j.Logger loggerSLF4J compatible logger -
isLoggingConfigured
protected static boolean isLoggingConfigured -
propertiesFileName
name of digilib properties file
-
-
Constructor Details
-
DigilibConfiguration
public DigilibConfiguration()Default constructor defines all parameters and their default values.
-
-
Method Details
-
getClassVersion
digilib version- Returns:
- the version
-
getVersion
-
readConfig
public void readConfig()read parameters from properties file digilib.properties in class path. -
setSpecialValueFromString
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-
-