Skip to content

Instantly share code, notes, and snippets.

@theam
Created October 10, 2010 23:35
Show Gist options
  • Save theam/619701 to your computer and use it in GitHub Desktop.
Save theam/619701 to your computer and use it in GitHub Desktop.
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