public class AdminAppMgr extends java.lang.Object implements AdminAppMgrIf
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.configuration2.Configuration |
adminAppConfigs
Admin App Configuration Map - the keys and values from konakartadmin_gwt.properties
|
protected static org.apache.commons.logging.Log |
log
the log
|
private static java.lang.String |
mutex |
Constructor and Description |
---|
AdminAppMgr()
Empty constructor
|
Modifier and Type | Method and Description |
---|---|
private org.apache.commons.configuration2.Configuration |
getAdminAppConfigs() |
private java.lang.String |
getAdminAppPropertiesFileName() |
java.lang.String |
getAdminAppProperty(java.lang.String key,
java.lang.String def)
Get the Admin App property value for the specified key.
|
boolean |
getAdminAppPropertyAsBoolean(java.lang.String key,
boolean def)
Get the Admin App property value as a boolean for the specified key.
|
int |
getAdminAppPropertyAsInt(java.lang.String key,
int def)
Get the Admin App property value as in int for the specified key.
|
void |
refreshCache()
Refresh the Admin App Manager's cached data
|
void |
setAdminAppConfigs(org.apache.commons.configuration2.Configuration newAdminAppConfigs)
Set this to null to refresh the cache next time it's called
|
protected static org.apache.commons.logging.Log log
private static org.apache.commons.configuration2.Configuration adminAppConfigs
private static java.lang.String mutex
public java.lang.String getAdminAppProperty(java.lang.String key, java.lang.String def) throws KKAdminException
getAdminAppProperty
in interface AdminAppMgrIf
key
- the keydef
- the defKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic int getAdminAppPropertyAsInt(java.lang.String key, int def) throws KKAdminException
getAdminAppPropertyAsInt
in interface AdminAppMgrIf
key
- the keydef
- the defKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic boolean getAdminAppPropertyAsBoolean(java.lang.String key, boolean def) throws KKAdminException
key
- the keydef
- the defKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void refreshCache() throws KKAdminException
AdminAppMgrIf
refreshCache
in interface AdminAppMgrIf
KKAdminException
- an unexpected exception in the KonaKart Admin engine
for unexpected problems such as not being able to locate or read properties filesprivate org.apache.commons.configuration2.Configuration getAdminAppConfigs() throws KKAdminException
KKAdminException
- an unexpected exception in the KonaKart Admin enginepublic void setAdminAppConfigs(org.apache.commons.configuration2.Configuration newAdminAppConfigs)
newAdminAppConfigs
- the adminAppConfigs to setprivate java.lang.String getAdminAppPropertiesFileName() throws com.konakart.app.KKException
com.konakart.app.KKException
Copyright © 2018 DS Data Systems UK Ltd.