Package com.samskivert.servlet

Examples of com.samskivert.servlet.SiteResourceLoader$SiteResourceBundle


        return props;
    }

    protected void configureResourceManager (ServletConfig config, Properties props) {
        if (props.getProperty("file.resource.loader.path") == null) {
            SiteResourceLoader siteLoader = _app.getSiteResourceLoader();
            if (siteLoader != null) {
                log.info("Velocity loading templates from site loader.");
                props.setProperty(RuntimeSingleton.RESOURCE_MANAGER_CLASS,
                                  SiteResourceManager.class.getName());
                _usingSiteLoading = true;
View Full Code Here


        _siteIdent = createSiteIdentifier(_context);

        // create a site resource loader if the user set up the site-specific jar file path
        String siteJarPath = getInitParameter(config, SITE_JAR_PATH_KEY);
        if (!StringUtil.isBlank(siteJarPath)) {
            _siteLoader = new SiteResourceLoader(_siteIdent, siteJarPath);
        }

        // instantiate our message manager if the application wants one
        String bundlePath = getInitParameter(config, MESSAGE_BUNDLE_PATH_KEY);
        if (!StringUtil.isBlank(bundlePath)) {
View Full Code Here

        // get handles on the good stuff
        _sctx = app.getServletContext();
        _ident = app.getSiteIdentifier();

        // make sure the app has a site resource loader
        SiteResourceLoader loader = app.getSiteResourceLoader();
        if (loader == null) {
            Log.log.warning("SiteResourceManager: application must be " +
                            "configured with a site-specific resource loader " +
                            "that we can use to fetch site-specific resources.");
        }
View Full Code Here

TOP

Related Classes of com.samskivert.servlet.SiteResourceLoader$SiteResourceBundle

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.