Example usage for org.springframework.beans.factory.xml XmlBeanDefinitionStoreException printStackTrace

List of usage examples for org.springframework.beans.factory.xml XmlBeanDefinitionStoreException printStackTrace

Introduction

In this page you can find the example usage for org.springframework.beans.factory.xml XmlBeanDefinitionStoreException printStackTrace.

Prototype

public void printStackTrace() 

Source Link

Document

Prints this throwable and its backtrace to the standard error stream.

Usage

From source file:org.pentaho.agilebi.spoon.visualizations.VisualizationManager.java

protected void loadVisualizationFile(File file) {
    try {/*from www.  ja v a 2  s .  c  om*/
        FileSystemXmlApplicationContext context = new FileSystemXmlApplicationContext(
                new String[] { file.getPath() }, false);
        context.setClassLoader(getClass().getClassLoader());
        context.refresh();
        Map beans = context.getBeansOfType(IVisualization.class);
        for (Object key : beans.keySet()) {
            IVisualization vis = (IVisualization) beans.get(key);
            if (vis.getOrder() >= 0) {
                visualizations.add(vis);
            }
        }
    } catch (XmlBeanDefinitionStoreException e) {
        // TODO: introduce logging
        e.printStackTrace();
    }
}