Modifier and Type | Field and Description |
---|---|
static org.slf4j.Marker |
ALWAYS_OUT |
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
static java.util.List<java.io.File> |
getApplicationClasspath() |
static java.util.Locale[] |
getAvailableLocales()
Return the list of locales from the configuration.
|
static java.io.File |
getBaseDir()
Return the base directory (from the configuration).
|
static java.util.List<java.io.File> |
getBootClasspath() |
static java.lang.ClassLoader |
getClassLoader()
Get the application class loader.
|
static java.util.List<java.io.File> |
getClasspath() |
static com.ibm.icu.text.NumberFormat |
getDecimalFormatter() |
static com.ibm.icu.text.NumberFormat |
getDecimalFormatter(java.lang.String maxDigitSettings,
com.ibm.icu.text.NumberFormat original)
returns a
NumberFormat where the max. fraction and integer digits
are set as defined in the passed parameter. all other settings are copied from
the passed NumberFormat |
static java.io.File |
getErrorLogFile()
returns the current-error-file
|
static int |
getLevel()
Deprecated.
use own
Logger instead |
static com.ibm.icu.text.NumberFormat |
getLocalNumberFormatter() |
static Pair<java.net.URL,java.lang.ClassLoader> |
getLocation(java.lang.String resourceName) |
static java.io.File |
getLogFile()
returns the current log-file
|
static java.io.PrintWriter |
getLogWriter() |
static java.security.MessageDigest |
getMessageDigest()
Returns a new instance of the MessageDigest used by the system (e.g. in DMS)
|
static java.lang.String |
getMessageDigestAlgorithmName()
Returns the Name of the MessageDigest algorithm used by the system (e.g. in DMS)
|
static Pair<java.lang.String,java.lang.String> |
getProcessRelation(java.lang.String key) |
static java.util.Map<java.lang.String,Pair<java.lang.String,java.lang.String>> |
getProcessRelations() |
static java.util.List<Pair<java.lang.String,java.lang.String>> |
getProcessRelationsList() |
static java.lang.String |
getProcessRelationText(java.lang.String key,
boolean forward) |
static java.lang.String |
getServerId()
Get the id of the server.
|
static MultiMap<java.lang.String,java.lang.String> |
getShadowedFiles()
Checks the classpath for duplicate entries.
|
static java.util.List<java.io.File> |
getSystemClasspath() |
static java.io.File |
getTempDir()
Return the temporary directory (from the configuration).
|
boolean |
isRunning()
Ask the object if it has been started
|
static void |
log(java.lang.String s,
int level)
Deprecated.
use own
Logger instead |
static void |
logError(java.lang.Throwable err)
Deprecated.
use own
Logger instead |
static void |
logError(java.lang.Throwable err,
java.lang.String errHeader)
Deprecated.
use own
Logger instead |
static void |
logError(java.lang.Throwable e,
java.lang.String msg,
int level)
Deprecated.
use own
Logger instead |
void |
reconfigure() |
static void |
setAvailableLocales(java.util.Locale[] l)
Change the list of locales.
|
static void |
setBaseDir(java.lang.String dir)
Set the base directory.
|
static void |
setClassLoader(java.lang.ClassLoader cl)
Set the application class loader.
|
void |
shutdown()
This method is called on shutdown.
|
void |
startup()
This method is called when the object is "started".
|
public static void setClassLoader(java.lang.ClassLoader cl)
cl
- a class loaderpublic static java.lang.ClassLoader getClassLoader()
@Deprecated public static void log(java.lang.String s, int level)
Logger
insteads
- the messagelevel
- the log level@Deprecated public static void logError(java.lang.Throwable err)
Logger
insteaderr
- a throwable.@Deprecated public static void logError(java.lang.Throwable err, java.lang.String errHeader)
Logger
insteaderr
- a throwable.errHeader
- the text for the header linepublic static java.io.File getBaseDir()
public static java.io.File getTempDir()
public static void setBaseDir(java.lang.String dir)
dir
- the directory pathpublic static java.lang.String getServerId()
public static java.util.Locale[] getAvailableLocales()
public static void setAvailableLocales(java.util.Locale[] l)
l
- an array of Locale objectspublic static com.ibm.icu.text.NumberFormat getDecimalFormatter()
public static com.ibm.icu.text.NumberFormat getLocalNumberFormatter()
public void startup()
Lifecycle
public void shutdown()
Lifecycle
public boolean isRunning()
Service
public void reconfigure()
public static java.util.Map<java.lang.String,Pair<java.lang.String,java.lang.String>> getProcessRelations()
public static Pair<java.lang.String,java.lang.String> getProcessRelation(java.lang.String key)
public static java.lang.String getProcessRelationText(java.lang.String key, boolean forward)
public static java.util.List<Pair<java.lang.String,java.lang.String>> getProcessRelationsList()
public static com.ibm.icu.text.NumberFormat getDecimalFormatter(java.lang.String maxDigitSettings, com.ibm.icu.text.NumberFormat original)
NumberFormat
where the max. fraction and integer digits
are set as defined in the passed parameter. all other settings are copied from
the passed NumberFormat
maxDigitSettings
- the settings for the max. fraction and integer digits. e.g. 18,8 means 8 integer digits and 8 fraction digitsoriginal
- the reference-number-format - all other settings are copied from this formatpublic static MultiMap<java.lang.String,java.lang.String> getShadowedFiles()
MultiMap
containing all duplicate entries (key) and their occurances (value)public static java.util.List<java.io.File> getBootClasspath()
public static java.util.List<java.io.File> getSystemClasspath()
public static java.util.List<java.io.File> getApplicationClasspath()
public static java.util.List<java.io.File> getClasspath()
public static Pair<java.net.URL,java.lang.ClassLoader> getLocation(java.lang.String resourceName)
@Deprecated public static int getLevel()
Logger
instead@Deprecated public static void logError(java.lang.Throwable e, java.lang.String msg, int level)
Logger
insteade
- the exceptionmsg
- the messagelevel
- the levelpublic static java.io.File getLogFile()
public static java.io.File getErrorLogFile()
public static java.io.PrintWriter getLogWriter()
LogOutputStream
public static java.lang.String getMessageDigestAlgorithmName()
public static java.security.MessageDigest getMessageDigest()
@enterprise 9.0.33982 Copyright © 2001-2023 Groiss Informatics GmbH. All Rights Reserved.