Package eu.admire.gateway.core.errors

Examples of eu.admire.gateway.core.errors.CompileErrorListener


           
            // Get a DISPEL engine from the Spring configuration
            DispelEngine dispelEngine =
                GatewayBeanFactory.getInstance().createDispelEngine();
           
            CompileErrorListener errorListener =
                new CompileErrorListener(mErrors);
            dispelEngine.addErrorListener(errorListener);
            SimpleRegistrationListener regListener =
                new SimpleRegistrationListener(mErrors);
            dispelEngine.addRegistrationListener(regListener);
           
            // Compile the DISPEL and optimise the graphs
            DispelEngineResult engineResult = null;
            try
            {
                dispelEngine.setRequestContext(context);
                engineResult = dispelEngine.processDispel(
                    new BufferedReader(new StringReader(dispel)));
            }
            catch (CompilationException e)
            {
                LOG.error("Caught exception during compilation.");
                updateStatus(ProcessingStatus.COMPILATION_ERROR);
                updateFinishedAt();
                return;
            }
            catch(TransformationException transformationException)
            {
                errorListener.error(transformationException);
                LOG.error("Caught exception during optimisation.");
                updateStatus(ProcessingStatus.COMPILATION_ERROR);
                updateFinishedAt();
                return;
            }
View Full Code Here

TOP

Related Classes of eu.admire.gateway.core.errors.CompileErrorListener

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.