Created
October 10, 2010 23:35
-
-
Save theam/619701 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try { | |
//Se carga una clase con el nombre especificado en operatorClassName | |
BaseOperator operatorObject = (BaseOperator) Class.forName("com.engage.operators."+operatorClassName).newInstance(); | |
operatorObject.setSources(sources); //Se pasan las fuentes al operador | |
return operatorObject.calculateValues(); | |
} catch (ClassNotFoundException ex) { | |
System.out.println(operatorName + "is not installed in this system"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment