Package org.jboss.soa.esb.actions.naming.strategy

Examples of org.jboss.soa.esb.actions.naming.strategy.FileNamingStrategy


      InputSource source = new InputSource(new StringReader(getStrategies()));
      parser.parse(source);
      Document doc = parser.getDocument();
      NodeList strategyNodes = doc.getElementsByTagName(ELEMENT_STRATEGY);
      for (int i = 0; i < strategyNodes.getLength(); i++) {
        FileNamingStrategy strategy = createStrategy(strategyNodes.item(i));
        strategyImpls.add(strategy);
      }
    } catch (SAXException e) {
      throw new RuntimeException(e);
    } catch (IOException e) {
View Full Code Here


    if (classNode == null) {
      throw new RuntimeException("Strategy does not have 'class' attribute.");
    }
    try {
      Class strategyClass = ClassUtil.forName(classNode.getNodeValue(), this.getClass());
      FileNamingStrategy strategy = (FileNamingStrategy) strategyClass.newInstance();
      strategy.configure(strategyNode);
      return strategy;
    } catch (DOMException e) {
      throw new RuntimeException(e);
    } catch (ClassNotFoundException e) {
      throw new RuntimeException(e);
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.actions.naming.strategy.FileNamingStrategy

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.