public abstract class AepConfig extends RootConfig
This class contains configuration information for the AEP package. The
user sets/gets configuration information for the package using
PACKAGE_NAME
as the package key to the configuration setter/getter
methods in RootConfig
.
When a class belonging to the AEP package is instantiated, it fetches the
configuration information to use from this class that, in turn, fetches it
from RootConfig
. In the interest of performance, this class caches
the package wide config information the first time it fetches it from
RootConfig
. The drawback is that any config change to this package
made after the first class in this package is instantiated is not propagated
to newly instantiated classes. The user can flush the cached config object
using flushConfig()
. This will force this class to fetch a new copy
of the package wide config info when the next class is instantiated.
RootConfig.ObjectConfig
Modifier and Type | Field and Description |
---|---|
static String |
PACKAGE_NAME
Package constant - Package name
|
Constructor and Description |
---|
AepConfig() |
Modifier and Type | Method and Description |
---|---|
static void |
flushConfig()
Flush the cached package configuration object.
|
static RootConfig.ObjectConfig |
getConfig()
Get the package configuration object.
|
getChecked, getLogger, getThreaded, getTraceLevel, setChecked, setLogger, setThreaded, setTraceLevel
public static final String PACKAGE_NAME
public static RootConfig.ObjectConfig getConfig()
public static void flushConfig()
This method discards any cached package configuration information.
Copyright © 2019 Neeve Research, LLC. All Rights Reserved.