com.konakartadmin.bl
Class AdminExecuteMgr

java.lang.Object
  extended by com.konakartadmin.bl.AdminBaseMgr
      extended by com.konakartadmin.bl.AdminExecuteMgr
All Implemented Interfaces:
AdminExecuteMgrIf

public class AdminExecuteMgr
extends AdminBaseMgr
implements AdminExecuteMgrIf

The manager for executing code dynamically


Nested Class Summary
 
Nested classes/interfaces inherited from class com.konakartadmin.bl.AdminBaseMgr
AdminBaseMgr.StaticData
 
Field Summary
protected static org.apache.commons.logging.Log log
          the log
 
Fields inherited from class com.konakartadmin.bl.AdminBaseMgr
adminEng, baseMgrMutex, baseStaticDataHM, cDataEnd, cDataStart, kkConf, kkInstanceId, mgrFactory, STORE_ID, templateBaseDir
 
Constructor Summary
AdminExecuteMgr(KKAdminIf eng)
          Constructor
 
Method Summary
 java.lang.String execute(java.lang.String className, java.lang.String methodName, java.lang.String[] paramArray)
          Executes a method with name methodName of a class with name className with the parameters of type String in paramArray.
protected  java.lang.Object getInstance(java.lang.String className)
          Instantiate the object referred to by the className parameter.
 
Methods inherited from class com.konakartadmin.bl.AdminBaseMgr
addInsertAttr, addInsertAttr, checkIntIsSet, checkRequired, getAdminAddressMgr, getAdminAuditMgr, getAdminBillingMgr, getAdminBookableProductMgr, getAdminCatMgr, getAdminConfigMgr, getAdminCurrMgr, getAdminCustMgr, getAdminCustTagMgr, getAdminEmailMgr, getAdminEng, getAdminHtmlMgr, getAdminLanguageMgr, getAdminManuMgr, getAdminMessageMgr, getAdminMiscItemMgr, getAdminModulesMgr, getAdminMultiStoreMgr, getAdminOrderMgr, getAdminPdfMgr, getAdminProdAttrMgr, getAdminProdMgr, getAdminPromMgr, getAdminPublishProdMgr, getAdminReviewMgr, getAdminSearchRuleMgr, getAdminSecMgr, getAdminSolrMgr, getAdminStoreMgr, getAdminTagMgr, getAdminTaxMgr, getAdminValidationMgr, getAdminVelocityContextMgr, getAdminWishListMgr, getBooleanFromString, getExportXMLData, getIntFromString, getKkConfig, getKkInstanceId, getMode, getModeString, getMqMgr, getNewCriteria, getNewCriteria, getPostSearchText, getPreSearchText, getPropertyValue, getRecordCount, getRewardPointMgr, getSingleIntResult, getStoreId, getTemplate, getTemplateBase, getXml_io, init, isConfigSet, isEnterprise, isMultiStoreLanguagesShared, isMultiStoreMode, isMultiStoreShareCategories, isMultiStoreShareCustomers, isMultiStoreShareProducts, isMultiStoreSingleDBCSMode, isMultiStoreSingleDBMode, isMultiStoreSingleDBNonCSMode, manageException, refreshConfigs, removeCData, setAdminEng, setupWildCardRules, setWildCardAfter, setWildCardBefore, shutdownGracefully, shutdownGracefully, timestampStr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
the log

Constructor Detail

AdminExecuteMgr

public AdminExecuteMgr(KKAdminIf eng)
                throws java.lang.Exception
Constructor

Parameters:
eng - An instance of the Admin eng
Throws:
java.lang.Exception
Method Detail

execute

public java.lang.String execute(java.lang.String className,
                                java.lang.String methodName,
                                java.lang.String[] paramArray)
                         throws java.lang.Exception
Executes a method with name methodName of a class with name className with the parameters of type String in paramArray. If the method has parameters, then they must be of type String. The order of the parameters in the array must match the order of the parameters in the method. i.e. myMethod(String p1, String p2) needs to receive an array where p1 is in index 0 and p2 in index 1. The method must return a String which may be null.

Specified by:
execute in interface AdminExecuteMgrIf
Parameters:
className - The fully qualified className
methodName - The name of the method to be executes
paramArray - The parameters passed to the method
Returns:
Returns a String
Throws:
java.lang.Exception

getInstance

protected java.lang.Object getInstance(java.lang.String className)
                                throws java.lang.Exception
Instantiate the object referred to by the className parameter. If a constructor exists that takes a single parameter of type com.konakartadmin.appif.KKAdminIf, then this constructor is used.

Parameters:
className -
Returns:
Returns the instantiated object
Throws:
java.lang.Exception


Copyright © 2011 DS Data Systems UK Ltd.