info.magnolia.module.resources.loaders
Interface ResourceLoader

All Known Implementing Classes:
ClasspathResourceLoader, FileSystemResourceLoader

public interface ResourceLoader

Implementing this interface will allow to use custom resource loader. Loaders are registered under config/modules/resources/config/resourceLoaders node.


Method Summary
 InputStream getStream(String path)
          Gets InputStream from template file.
 boolean isEnabled()
           
 

Method Detail

getStream

InputStream getStream(String path)
                      throws IOException
Gets InputStream from template file.

Parameters:
path -
Returns:
InputStream if resource was found or null otherwise
Throws:
IOException

isEnabled

boolean isEnabled()
Returns:
true if loader is enabled or false otherwise


Copyright © 2013 Magnolia International Ltd.. All Rights Reserved.