Examples of ServletContextResourceLoader


Examples of org.springframework.web.context.support.ServletContextResourceLoader

        logInBothServletAndLoggingSystem("Initializing filter: " + getFilterName());

        try {
            PropertyValues pvs = new FilterConfigPropertyValues(getFilterConfig(), requiredProperties);
            BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(this);
            ResourceLoader resourceLoader = new ServletContextResourceLoader(getServletContext());
            bw.registerCustomEditor(Resource.class, new ResourceEditor(resourceLoader));
            initBeanWrapper(bw);
            bw.setPropertyValues(pvs, true);
        } catch (Exception e) {
            throw new ServletException("Failed to set bean properties on filter: " + getFilterName(), e);
View Full Code Here

Examples of org.springframework.web.context.support.ServletContextResourceLoader

        logInBothServletAndLoggingSystem("Initializing filter: " + getFilterName());

        try {
            PropertyValues pvs = new FilterConfigPropertyValues(getFilterConfig(), requiredProperties);
            BeanWrapper bw = PropertyAccessorFactory.forBeanPropertyAccess(this);
            ResourceLoader resourceLoader = new ServletContextResourceLoader(getServletContext());
            bw.registerCustomEditor(Resource.class, new ResourceEditor(resourceLoader));
            initBeanWrapper(bw);
            bw.setPropertyValues(pvs, true);
        } catch (Exception e) {
            throw new ServletException("Failed to set bean properties on filter: " + getFilterName(), e);
View Full Code Here

Examples of org.springframework.web.context.support.ServletContextResourceLoader

    protected ResourceLoader getResourceLoader() {
        if (this.resourceLoader != null) {
            return this.resourceLoader;
        }
        if (this.servletContext != null) {
            return new ServletContextResourceLoader(this.servletContext);
        } else {
            return new FileSystemResourceLoader();
        }
    }
View Full Code Here

Examples of org.springframework.web.context.support.ServletContextResourceLoader

     *
     * @param context The Servlet Context.
     */
    public DefaultTemplateLoader(final ServletContext context) {
      resolver = new PathMatchingResourcePatternResolver(
          new ServletContextResourceLoader(context));
    }
View Full Code Here

Examples of org.springframework.web.context.support.ServletContextResourceLoader

        this.loader = loader;
    }

    @Override
    protected void initServletContext(ServletContext servletContext) {
        this.scloader = new ServletContextResourceLoader(servletContext);
    }
View Full Code Here

Examples of org.springframework.web.context.support.ServletContextResourceLoader

        this.loader = loader;
    }

    @Override
    protected void initServletContext(ServletContext servletContext) {
        this.scloader = new ServletContextResourceLoader(servletContext);
    }
View Full Code Here

Examples of org.springframework.web.context.support.ServletContextResourceLoader

        return SharedEntityManagerCreator.createSharedEntityManager(entityManagerFactory);
    }

    private ServletContextResourceLoader newResourceLoader(ServletContext servletContext) {
        return new ServletContextResourceLoader(servletContext);
    }
View Full Code Here

Examples of org.springframework.web.context.support.ServletContextResourceLoader

    }

    @Bean
    @Autowired
    public ServletContextResourceLoader servletContextResourceLoader(ServletContext servletContext) {
        return new ServletContextResourceLoader(servletContext);
    }
View Full Code Here

Examples of org.springframework.web.context.support.ServletContextResourceLoader

        final File fileStorageDirectory = getFile(fileStorageDirectoryPath);
        return !fileStorageDirectory.exists() || !fileStorageDirectory.isDirectory();
    }

    private ServletContextResourceLoader servletContextResourceLoader(ServletContext servletContext) {
        return new ServletContextResourceLoader(servletContext);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.