ing
This commit is contained in:
parent
440c9622a4
commit
bd23763113
|
@ -7,7 +7,11 @@ export class ServiceInvoker {
|
||||||
}
|
}
|
||||||
|
|
||||||
public invoke(className: string, methodName: string, params?: any): void {
|
public invoke(className: string, methodName: string, params?: any): void {
|
||||||
let classObj: Object = this.configMap[className];
|
let classObj: Object = this.configMap.get(className);
|
||||||
|
if (classObj === null) {
|
||||||
|
console.log('Error: Cannot find the class. [' + className + ']');
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!classObj.hasOwnProperty(methodName)) {
|
if (!classObj.hasOwnProperty(methodName)) {
|
||||||
console.log('Error: Cannot find the method. [' + methodName + ']');
|
console.log('Error: Cannot find the method. [' + methodName + ']');
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user