|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectechoxul.view.ViewLocator
echoxul.view.locator.BaseViewLocator
echoxul.view.locator.DelegatingViewLocator
echoxul.view.locator.CachingViewLocator
An extension of DelegatingViewLocator which caches all returned Views. If a View exists in the cache, it is not reloaded.
| Field Summary |
| Fields inherited from class echoxul.view.ViewLocator |
ATTRIBUTE_NAME |
| Constructor Summary | |
CachingViewLocator(ResourceLocator[] rl)
Equivilent to the two-arg ctor with "false" passed for disableCaching |
|
CachingViewLocator(ResourceLocator[] rl,
boolean disableCaching)
A ViewLocator which searches the list of ResourceLocators. |
|
| Method Summary | |
void |
clearCache()
Can be called programatically to clear the cache |
View |
lookupView(java.lang.String path)
Looks up a (potentially cached) view from the list of ViewResolvers registered with this instance. |
| Methods inherited from class echoxul.view.locator.BaseViewLocator |
loadXULView, lookupView |
| Methods inherited from class echoxul.view.ViewLocator |
getInstance, setInstance |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CachingViewLocator(ResourceLocator[] rl)
rl -
public CachingViewLocator(ResourceLocator[] rl,
boolean disableCaching)
rl - ResourceLocators for base classdisableCaching - To disable caching| Method Detail |
public void clearCache()
public View lookupView(java.lang.String path)
throws ViewNotFoundException
ViewLocatorTODO: Fully document this method
lookupView in class DelegatingViewLocatorViewNotFoundExceptionViewLocator.lookupView(java.lang.String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||