|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the resource type.public interface ResourceResolver<T>
An interface to content resource resolvers.
Method Summary | |
---|---|
String |
getFinderAlias()
Gets the name or alias of the finder to apply. |
String |
getFinderKey()
Gets the finder key to apply. |
long |
getLastModified(String name)
Gets a timestamp of the last modification of the resource. |
String[] |
getPaths()
Gets the array of resource paths. |
Resource<T> |
getResource(String name)
Gets a named resource. |
InputStream |
getResourceAsStream(String name)
Gets a named resource as a stream. |
MBeanReference<? extends TemplateEngine> |
getTemplateEngineMBean()
Gets a reference to the template engine. |
boolean |
resourceExists(String name)
Checks whether a resource exists. |
void |
setFinderAlias(String alias)
Sets the name or alias of the finder to apply. |
void |
setFinderKey(String key)
Sets the finder key to apply. |
void |
setPaths(String[] paths)
Sets the array of resource paths. |
void |
setTemplateEngineMBean(MBeanReference<? extends TemplateEngine> ref)
Sets a reference to the template engine. |
Method Detail |
---|
String[] getPaths()
void setPaths(String[] paths)
paths
- the resource paths.String getFinderKey()
void setFinderKey(String key)
key
- the finder key.String getFinderAlias()
void setFinderAlias(String alias)
alias
- the finder alias.MBeanReference<? extends TemplateEngine> getTemplateEngineMBean()
void setTemplateEngineMBean(MBeanReference<? extends TemplateEngine> ref)
ref
- a reference to the template engine.Resource<T> getResource(String name)
name
- the name of the resource.
InputStream getResourceAsStream(String name) throws IOException
name
- the name of the resource.
IOException
- on I/O errors.long getLastModified(String name)
name
- the name of the resource.
boolean resourceExists(String name)
name
- the name of the resource.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |