public class ResourceCaches
extends java.lang.Object
ResourceCache
and ResourceLoader
must be used rather than
ResourceCache
and Loader
.
Usage:
ResourceLoader
.ResourceCache
)
by use of the loader in the previous step.get(org.zkoss.web.util.resource.ResourceCache<V>, javax.servlet.ServletContext, java.lang.String, java.lang.Object)
to load the resource.Constructor and Description |
---|
ResourceCaches() |
Modifier and Type | Method and Description |
---|---|
static <V> V |
get(ResourceCache<V> cache,
javax.servlet.ServletContext ctx,
java.lang.String path,
java.lang.Object extra)
Loads, parses and returns the resource of the specified URI,
or null if not found.
|
public static final <V> V get(ResourceCache<V> cache, javax.servlet.ServletContext ctx, java.lang.String path, java.lang.Object extra)
ResourceCache
.cache
- the resource cache.
Note: its loader must extend from ResourceLoader
.path
- the URI pathextra
- the extra parameter that will be passed to
ResourceLoader.parse(String,File,Object)
and
ResourceLoader.parse(String,URL,Object)
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.