Modifier and Type | Field and Description |
---|---|
static org.slf4j.Marker |
ALWAYS_OUT |
static String |
FORM_INTERFACE_PACKAGE_NAME |
static String |
FORM_PACKAGE_NAME |
static String |
FORM_PACKAGE_NAME_OLD |
Constructor and Description |
---|
Settings() |
Modifier and Type | Method and Description |
---|---|
static List<File> |
getApplicationClasspath() |
static Locale[] |
getAvailableLocales()
Return the list of locales from the configuration.
|
static File |
getBaseDir()
Return the base directory (from the configuration).
|
static List<File> |
getBootClasspath() |
static ClassLoader |
getClassLoader()
Get the application class loader.
|
static List<File> |
getClasspath() |
static NumberFormat |
getDecimalFormatter() |
static NumberFormat |
getDecimalFormatter(String maxDigitSettings,
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 String |
getEPShadowFiles()
Check if @enterprise resources are shadowed.
|
static File |
getErrorLogFile()
returns the current-error-file
|
static String |
getFormPackage()
return the name of the form class package (either com.dec.avw.appl. or com.groiss.forms.)
|
static File |
getJarArchive(Class<?> clazz)
Get the jar archive the given class is loaded from.
|
static int |
getLevel()
Deprecated.
use own
Logger instead |
static NumberFormat |
getLocalNumberFormatter() |
static Pair<URL,ClassLoader> |
getLocation(String resourceName) |
static File |
getLogFile()
returns the current log-file
|
static PrintWriter |
getLogWriter() |
static MessageDigest |
getMessageDigest()
Returns a new instance of the MessageDigest used by the system (e.g. in DMS)
|
static String |
getMessageDigestAlgorithmName()
Returns the Name of the MessageDigest algorithm used by the system (e.g. in DMS)
|
static Pair<String,String> |
getProcessRelation(String key) |
static Map<String,Pair<String,String>> |
getProcessRelations()
Returns the list of process relations.
|
static List<Pair<String,String>> |
getProcessRelationsList() |
static String |
getProcessRelationText(String key,
boolean forward) |
static String |
getResourceDir()
We store the resources of an application in the "classes" directory of the application.
|
static String |
getServerId()
Get the id of the server.
|
static MultiMap<String,String> |
getShadowedFiles()
Checks the classpath for duplicate entries.
|
static List<File> |
getSystemClasspath() |
static File |
getTempDir()
Return the temporary directory (from the configuration).
|
static String |
getTextCharset() |
static boolean |
isFormclass(String classname) |
boolean |
isRunning()
Ask the object if it has been started
|
static void |
log(String s,
int level)
Deprecated.
use own
Logger instead |
static void |
logError(Throwable err)
Deprecated.
use own
Logger instead |
static void |
logError(Throwable err,
String errHeader)
Deprecated.
use own
Logger instead |
static void |
logError(Throwable e,
String msg,
int level)
Deprecated.
use own
Logger instead |
void |
reconfigure() |
static String |
removeFormPackageName(String classname) |
static void |
setAvailableLocales(Locale[] l)
Change the list of locales.
|
static void |
setBaseDir(String dir)
Set the base directory.
|
static void |
setClassLoader(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 final org.slf4j.Marker ALWAYS_OUT
public static final String FORM_PACKAGE_NAME
public static final String FORM_INTERFACE_PACKAGE_NAME
public static final String FORM_PACKAGE_NAME_OLD
public static void setClassLoader(ClassLoader cl)
cl
- a class loaderpublic static ClassLoader getClassLoader()
@Deprecated public static void log(String s, int level)
Logger
insteads
- the messagelevel
- the log level@Deprecated public static void logError(Throwable err)
Logger
insteaderr
- a throwable.@Deprecated public static void logError(Throwable err, String errHeader)
Logger
insteaderr
- a throwable.errHeader
- the text for the header linepublic static File getBaseDir()
public static File getTempDir()
public static void setBaseDir(String dir)
dir
- the directory pathpublic static String getServerId()
public static Locale[] getAvailableLocales()
public static void setAvailableLocales(Locale[] l)
l
- an array of Locale objectspublic static NumberFormat getDecimalFormatter()
public static NumberFormat getLocalNumberFormatter()
public void startup()
Lifecycle
public void shutdown()
Lifecycle
public boolean isRunning()
Service
public void reconfigure()
public static Map<String,Pair<String,String>> getProcessRelations()
public static NumberFormat getDecimalFormatter(String maxDigitSettings, 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 10 integer digits and 8 fraction digitsoriginal
- the reference-number-format - all other settings are copied from this formatpublic static MultiMap<String,String> getShadowedFiles()
MultiMap
containing all duplicate entries (key) and their occurances (value)public static String getEPShadowFiles() throws IOException
IOException
public static File getJarArchive(Class<?> clazz)
public static Pair<URL,ClassLoader> getLocation(String resourceName)
@Deprecated public static int getLevel()
Logger
instead@Deprecated public static void logError(Throwable e, String msg, int level)
Logger
insteade
- the exceptionmsg
- the messagelevel
- the levelpublic static File getLogFile()
public static File getErrorLogFile()
public static PrintWriter getLogWriter()
LogOutputStream
public static String getMessageDigestAlgorithmName()
public static MessageDigest getMessageDigest()
public static String getFormPackage()
public static boolean isFormclass(String classname)
public static String getResourceDir()
public static String getTextCharset()
@enterprise 10.0.39049 Copyright © 2024 FREQUENTIS AG. All Rights Reserved.