|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.norther.tammi.spray.engine.resource.AbstractResourceResolver
public abstract class AbstractResourceResolver
An abstract implementation of ResourceResolver.
| Nested Class Summary | |
|---|---|
protected class |
AbstractResourceResolver.AbstractResource
An abstract resource. |
| Constructor Summary | |
|---|---|
AbstractResourceResolver()
Constructs a new resolver. |
|
| Method Summary | |
|---|---|
String |
getFinderAlias()
Gets the name or alias of the finder to apply. |
String |
getFinderKey()
Gets the finder key to apply. |
abstract long |
getLastModified(String name)
Gets a timestamp of the last modification of the resource. |
protected MBeanServer |
getMBeanServer()
Gets the MBean server. |
protected PathFinder |
getPathFinder()
Gets the path finder. |
String[] |
getPaths()
Gets the array of resource paths. |
abstract Resource |
getResource(String name)
Gets a named resource. |
abstract InputStream |
getResourceAsStream(String name)
Gets a named resource as a stream. |
MBeanReference |
getTemplateEngineMBean()
Gets a reference to the template engine MBean. |
protected Locale |
resolveLocale(StringBuilder name)
Resolves the locale from a named resource, if any. |
abstract 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 instance)
Sets a reference to the template engine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractResourceResolver()
| Method Detail |
|---|
public void setPaths(String[] paths)
ResourceResolver
setPaths in interface ResourceResolverpaths - the resource paths.public String[] getPaths()
ResourceResolver
getPaths in interface ResourceResolverpublic String getFinderKey()
ResourceResolver
getFinderKey in interface ResourceResolverpublic void setFinderKey(String key)
ResourceResolver
setFinderKey in interface ResourceResolverkey - the finder key.public String getFinderAlias()
ResourceResolver
getFinderAlias in interface ResourceResolverpublic void setFinderAlias(String alias)
ResourceResolver
setFinderAlias in interface ResourceResolveralias - the finder alias.public MBeanReference getTemplateEngineMBean()
ResourceResolver
getTemplateEngineMBean in interface ResourceResolverpublic void setTemplateEngineMBean(MBeanReference instance)
ResourceResolver
setTemplateEngineMBean in interface ResourceResolverinstance - a reference to the template engine MBean.public abstract Resource getResource(String name)
ResourceResolver
getResource in interface ResourceResolvername - the name of the resource.
public abstract InputStream getResourceAsStream(String name)
throws IOException
ResourceResolver
getResourceAsStream in interface ResourceResolvername - the name of the resource.
IOException - on I/O errors.public abstract long getLastModified(String name)
ResourceResolver
getLastModified in interface ResourceResolvername - the name of the resource.
public abstract boolean resourceExists(String name)
ResourceResolver
resourceExists in interface ResourceResolvername - the name of the resource.
protected Locale resolveLocale(StringBuilder name)
name - the resource name.
protected MBeanServer getMBeanServer()
protected PathFinder getPathFinder()
IllegalStateException - if not found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||