Examples of DefaultResourceLoader


Examples of org.springframework.core.io.DefaultResourceLoader

     * resource loader.
     *
     * @param engine The template engine that will be used to generate the appropriate templates.
     */
    protected BasicTemplateResolver(TemplateEngine engine) {
        this(engine, new DefaultResourceLoader());
    }
View Full Code Here

Examples of org.springframework.core.io.DefaultResourceLoader

     * Test method for 'org.springmodules.jcr.jeceira.RepositoryFactoryBean.resolveConfigurationResource()'
     */
    public void testResolveConfigurationResource() throws Exception {
      
        factory.resolveConfigurationResource();
        DefaultResourceLoader loader = new DefaultResourceLoader();
        Resource res = loader.getResource("/repository.xml");
        assertEquals(res, factory.getConfiguration());
        assertEquals(".", factory.getHomeDir().getFilename());
       
    }
View Full Code Here

Examples of org.springframework.core.io.DefaultResourceLoader

*/
public class GenericWebContextLoader extends AbstractContextLoader {
    protected final MockServletContext servletContext;

    public GenericWebContextLoader(String warRootDir, boolean isClasspathRelative) {
        ResourceLoader resourceLoader = isClasspathRelative ? new DefaultResourceLoader() : new FileSystemResourceLoader();
        this.servletContext = initServletContext(warRootDir, resourceLoader);
    }
View Full Code Here

Examples of org.springframework.core.io.DefaultResourceLoader

    protected Resource createResource(Element resourceDefinition) {
        String path = resourceDefinition.getAttribute(LOCATION_ATTR);
        if (!StringUtils.hasText(path)) {
            throw new ValidationConfigurationException("Resoruce path is required and cannot be empty");
        }
        return new DefaultResourceLoader().getResource(path);
    }
View Full Code Here

Examples of org.springframework.core.io.DefaultResourceLoader

    /**
     * Constructs a new SpringResourceLoaderResourceLoader with {@link org.springframework.core.io.DefaultResourceLoader} as the internal spring
     * resource loader.
     */
    public SpringResourceLoaderResourceLoader() {
        this(new DefaultResourceLoader());
    }
View Full Code Here

Examples of org.springframework.core.io.DefaultResourceLoader

    private ResourceLoader resourceLoader;

    private Properties configuration;

    public VelocityTemplateEngine() {
        this(new DefaultResourceLoader());
    }
View Full Code Here

Examples of org.springframework.core.io.DefaultResourceLoader

    /**
     * Constructs a new SaxEmailParser where the {@link DefaultResourceLoader} is used to load the attchment
     * resources.
     */
    public SaxEmailParser() {
        this(new DefaultResourceLoader());
    }
View Full Code Here

Examples of org.springframework.core.io.DefaultResourceLoader

    private ResourceLoader resourceLoader;

    private Properties configuration;

    public VelocityTemplateEngine() {
        this(new DefaultResourceLoader());
    }
View Full Code Here

Examples of org.springframework.core.io.DefaultResourceLoader

    /**
     * Constructs a new FreemarkerTemplateEngine. The engine uses the default settings of freemarker engine and
     * {@link DefaultResourceLoader} as the resource loader that is used to load all template resources.
     */
    public FreemarkerTemplateEngine() {
        this(new DefaultResourceLoader());
    }
View Full Code Here

Examples of org.springframework.core.io.DefaultResourceLoader

    /**
     * Constructs a new ResourceTemplateLoader where {@link DefaultResourceLoader} is used as the resource loader.
     */
    public ResourceLoaderTemplateLoader() {
        this(new DefaultResourceLoader());
    }
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.