Package net.sf.jasperreports.engine.util

Examples of net.sf.jasperreports.engine.util.LocalJasperReportsContext


        doExport(outputStream, print);
    }

    private JasperFillManager getJasperFillManager(@Nonnull final Configuration configuration) {
        LocalJasperReportsContext ctx = getLocalJasperReportsContext(configuration);
        return JasperFillManager.getInstance(ctx);
    }
View Full Code Here


            throw new AssertionFailedException(finalError.toString());
        }
    }

    private LocalJasperReportsContext getLocalJasperReportsContext(final Configuration configuration) {
        LocalJasperReportsContext ctx = new LocalJasperReportsContext(DefaultJasperReportsContext.getInstance());
        ctx.setClassLoader(getClass().getClassLoader());
        ctx.setExtensions(RepositoryService.class,
                Lists.newArrayList(new MapfishPrintRepositoryService(configuration, this.httpRequestFactory)));
        return ctx;
    }
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.util.LocalJasperReportsContext

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.