parser.next();
continue;
}
try {
LoadStrategy s = (LoadStrategy) clazz.getConstructor( (Class<?>[]) null ).newInstance( (Object[]) null );
loadStrategies.add(className);
loadStrategyProperties.put(className, s.getProperty());
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalArgumentException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SecurityException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (InvocationTargetException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (NoSuchMethodException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
break;
}
if(parser.getLocalName().equals("ExecutionStrategy")){
parser.next();
String className = parser.getText();
Class<ExecutionStrategy> clazz = null;
try {
clazz = (Class<ExecutionStrategy>) Class.forName(className);
} catch (ClassNotFoundException e) {
parser.next();
continue;
}
try {
ExecutionStrategy s = clazz.getConstructor( (Class<?>[]) null ).newInstance( (Object[]) null );;
executionStrategies.add(className);
executionStrategyProperties.put(className, s.getProperty());
} catch (InstantiationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IllegalAccessException e) {
// TODO Auto-generated catch block