Package org.apache.olio.webapp.util

Examples of org.apache.olio.webapp.util.ServiceLocator


    public void contextInitialized(ServletContextEvent sce) {
        context = sce.getServletContext();
        getContext().setAttribute(WebConstants.MF_KEY, this);
        WebappUtil.setContext(getContext().getContextPath());

        ServiceLocator sloc = ServiceLocator.getInstance();
        jmakiUsage = Boolean.parseBoolean(sloc.getString("webapp.jmakiUsage", "false"));
        useCache = Boolean.parseBoolean(sloc.getString("useLocalCache", "true"));
    }
View Full Code Here


     */
    public void write(FileItemStream item, String fileName) throws Exception {
        // use name for update of session
        String itemName = item.getName();

        ServiceLocator locator = ServiceLocator.getInstance();

        FileSystem fs = locator.getFileSystem();

        logger.fine("Getting fileItem from memory - " + itemName);

        OutputStream fout = fs.create(fileName);

View Full Code Here

    public void writeWithThumbnail(FileItemStream item,
            String imageName, String thumbnailName) throws Exception {
        // use name for update of session
        String itemName = item.getName();

        ServiceLocator locator = ServiceLocator.getInstance();

        FileSystem fs = locator.getFileSystem();

        logger.fine("Getting fileItem from memory - " + itemName);

        OutputStream imgOut = null;
        OutputStream thumbOut = null;
View Full Code Here

TOP

Related Classes of org.apache.olio.webapp.util.ServiceLocator

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.