public class KKAdminEngineMgr
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_KKADMIN_ENGINE_CLASS_NAME
The default Admin Engine class name
|
protected static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
KKAdminEngineMgr() |
Modifier and Type | Method and Description |
---|---|
void |
checkStoreIsSupportedInMultiStoreMode(java.lang.String databasesUsed,
java.lang.String storeId)
Check whether the storeId is included in the list of databases used - in Multi Store Mode
|
void |
checkStoreIsSupportedInSingleStoreMode(java.lang.String storeId)
Check whether the storeId is supported in Single Store Mode
|
KKAdminIf |
createKKAdminEngine(org.apache.commons.configuration2.Configuration conf,
java.lang.String enginePropertyName,
java.lang.String propsFileName,
AdminEngineConfig adminEngConfig)
Creates a KKAdmin engine using configuration values in the specified properties and Admin
Engine Configuration object
|
KKAdminIf |
getKKAdminByName(AdminEngineConfig adminEngConfig)
Create a new KKAdmin engine from a class of the specified default name.
|
KKAdminIf |
getKKAdminByName(java.lang.String kkAdminEngineName,
AdminEngineConfig adminEngConfig)
Create a new KKAdmin engine from a class of the specified name.
|
public static final java.lang.String DEFAULT_KKADMIN_ENGINE_CLASS_NAME
protected static org.apache.commons.logging.Log log
public KKAdminIf createKKAdminEngine(org.apache.commons.configuration2.Configuration conf, java.lang.String enginePropertyName, java.lang.String propsFileName, AdminEngineConfig adminEngConfig) throws KKAdminException
conf
- the configuration object read from the properties fileenginePropertyName
- the name of the property to look up in the Configuration to find the engine class
namepropsFileName
- the name of the properties file that holds the properties - used only for
diagnostic purposes in exceptionsadminEngConfig
- the Admin Engine configuration objectKKAdminException
- an unexpected exception in the KonaKart Admin enginepublic KKAdminIf getKKAdminByName(java.lang.String kkAdminEngineName, AdminEngineConfig adminEngConfig) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
kkAdminEngineName
- the name of the class that implements KKAdminIfadminEngConfig
- the engine configuration objectjava.lang.InstantiationException
- an unexpected InstantiationException exceptionjava.lang.IllegalAccessException
- an unexpected IllegalAccessException exceptionjava.lang.ClassNotFoundException
- an unexpected ClassNotFoundException exceptionjava.lang.IllegalArgumentException
- an unexpected IllegalArgumentException exceptionjava.lang.reflect.InvocationTargetException
- an unexpected InvocationTargetException exceptionpublic void checkStoreIsSupportedInMultiStoreMode(java.lang.String databasesUsed, java.lang.String storeId) throws KKAdminException
databasesUsed
- the property value from the properties filestoreId
- the storeId to check forKKAdminException
- an unexpected exception in the KonaKart Admin engine throws this if the storeId
is not in the list of supported databasespublic void checkStoreIsSupportedInSingleStoreMode(java.lang.String storeId) throws KKAdminException
storeId
- the storeId to check forKKAdminException
- an unexpected exception in the KonaKart Admin engine throws this if the storeId
is not supported in Single Store Modepublic KKAdminIf getKKAdminByName(AdminEngineConfig adminEngConfig) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.ClassNotFoundException, java.lang.IllegalArgumentException, java.lang.reflect.InvocationTargetException
adminEngConfig
- the engine configuration objectjava.lang.InstantiationException
- an unexpected InstantiationException exceptionjava.lang.IllegalAccessException
- an unexpected IllegalAccessException exceptionjava.lang.ClassNotFoundException
- an unexpected ClassNotFoundException exceptionjava.lang.IllegalArgumentException
- an unexpected IllegalArgumentException exceptionjava.lang.reflect.InvocationTargetException
- an unexpected InvocationTargetException exceptionCopyright © 2018 DS Data Systems UK Ltd.