Package ch.tatool.core.module.creator

Examples of ch.tatool.core.module.creator.CreationException


        try {
            beanFactory = new XmlBeanFactory(new ByteArrayResource(configurationXML.getBytes()));
        } catch (BeansException be) {
          logger.error("Unable to load Tatool file.", be);
          String[] errors = be.getMessage().split(";");
          throw new CreationException(errors[errors.length-1]);
        }
       
        // see whether we have properties
        if (beanFactory.containsBean("moduleProperties")) {
            Map<String, String> properties = (Map<String, String>) beanFactory.getBean("moduleProperties");
View Full Code Here


        }
       
        // check whether we have the mandatory beans (rootElement)
        if (! beanFactory.containsBean(ROOT_ELEMENT)) {
          logger.error("Unable to load Tatool file. Root element missing!");
          throw new CreationException("Unable to load Tatool file. Root element missing!");      
        }
       
        // fetch the rootElement
        try {
          Element root = (Element) beanFactory.getBean(ROOT_ELEMENT);
          return root;
        } catch (RuntimeException e) {
          String[] errors = e.getMessage().split(";");
          throw new CreationException(errors[errors.length-1]);
        }
    }
View Full Code Here

        }
       
        // check whether we have the mandatory beans (rootElement)
        if (! moduleContext.containsBean(ROOT_ELEMENT)) {
          logger.error("Unable to load Tatool file. Root element missing!");
          throw new CreationException("Unable to load Tatool file. Root element missing!");      
        }
       
        // fetch the rootElement
        try {
          Element root = (Element) moduleContext.getBean(ROOT_ELEMENT);
          return root;
        } catch (RuntimeException e) {
          String[] errors = e.getMessage().split(";");
          throw new CreationException(errors[errors.length-1]);
        }
    }
View Full Code Here

        try {
            beanFactory = new XmlBeanFactory(new ByteArrayResource(configurationXML.getBytes()));
        } catch (BeansException be) {
          logger.error("Unable to load Tatool file.", be);
          String[] errors = be.getMessage().split(";");
          throw new CreationException(errors[errors.length-1]);
        }
       
        // see whether we have properties
        if (beanFactory.containsBean("moduleProperties")) {
            Map<String, String> properties = (Map<String, String>) beanFactory.getBean("moduleProperties");
View Full Code Here

        }
       
        // check whether we have the mandatory beans (rootElement)
        if (! beanFactory.containsBean(ROOT_ELEMENT)) {
          logger.error("Unable to load Tatool file. Root element missing!");
          throw new CreationException("Unable to load Tatool file. Root element missing!");      
        }
       
        // fetch the rootElement
        try {
          Element root = (Element) beanFactory.getBean(ROOT_ELEMENT);
          return root;
        } catch (RuntimeException e) {
          String[] errors = e.getMessage().split(";");
          throw new CreationException(errors[errors.length-1]);
        }
    }
View Full Code Here

TOP

Related Classes of ch.tatool.core.module.creator.CreationException

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.