|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.velocity.runtime.resource.loader.ResourceLoader
com.samskivert.velocity.SiteJarResourceLoader
public class SiteJarResourceLoader
A Velocity resource loader that loads resources from site-specific jar
files. This cannot be used with the default Velocity resource manager,
but is used by the SiteResourceManager which automatically
handles the creation and use of this resource loader.
SiteResourceLoader| Field Summary | |
|---|---|
protected SiteResourceLoader |
_loader
The site resource loader through which we'll load things. |
| Fields inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
|---|
className, isCachingOn, log, modificationCheckInterval, rsvc |
| Constructor Summary | |
|---|---|
SiteJarResourceLoader(SiteResourceLoader loader)
Constructs a site resource loader that will use the specified site identifier to map site ids to site strings. |
|
| Method Summary | |
|---|---|
long |
getLastModified(org.apache.velocity.runtime.resource.Resource resource)
Things won't ever be modified when loaded from the servlet context because they came from the webapp .war file and if that is reloaded, everything will be thrown away and started afresh. |
InputStream |
getResourceStream(String path)
Returns the input stream that can be used to load the named resource. |
void |
init(org.apache.commons.collections.ExtendedProperties config)
This is not called. |
boolean |
isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
Things won't ever be modified when loaded from the servlet context because they came from the webapp .war file and if that is reloaded, everything will be thrown away and started afresh. |
| Methods inherited from class org.apache.velocity.runtime.resource.loader.ResourceLoader |
|---|
commonInit, getClassName, getModificationCheckInterval, isCachingOn, setCachingOn, setModificationCheckInterval |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SiteResourceLoader _loader
| Constructor Detail |
|---|
public SiteJarResourceLoader(SiteResourceLoader loader)
| Method Detail |
|---|
public void init(org.apache.commons.collections.ExtendedProperties config)
init in class org.apache.velocity.runtime.resource.loader.ResourceLoader
public InputStream getResourceStream(String path)
throws org.apache.velocity.exception.ResourceNotFoundException
getResourceStream in class org.apache.velocity.runtime.resource.loader.ResourceLoaderpath - the path for the resource to be loaded.
org.apache.velocity.exception.ResourceNotFoundException - if the resource was not found.public boolean isSourceModified(org.apache.velocity.runtime.resource.Resource resource)
isSourceModified in class org.apache.velocity.runtime.resource.loader.ResourceLoaderpublic long getLastModified(org.apache.velocity.runtime.resource.Resource resource)
getLastModified in class org.apache.velocity.runtime.resource.loader.ResourceLoader
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||