Package de.fzi.herakles.commons.strategy

Examples of de.fzi.herakles.commons.strategy.LoadStrategy


            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
View Full Code Here

TOP

Related Classes of de.fzi.herakles.commons.strategy.LoadStrategy

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.