callModuleObject(moduleName,
objectName=None,
moduleFilePath=None,
objectType=None,
objectArgs=None,
objectProperties=None)
| source code
|
Create and return an instance of the specified class or invoke
callable
- Parameters:
moduleName (str) - Name of module containing the class
objectName (str) - Name of the class to instantiate. May be None in which case, the
class name is parsed from the moduleName last element
moduleFilePath (str) - Path to the module - if unset, assume module on system path
already
objectProperties (dict) - dict of properties to use when instantiating the class
objectType (object) - expected type for the object to instantiate - to enforce use of
specific interfaces
- Returns:
- object - instance of the class specified
|