echoxul.view.locator
Class DynamicViewLocator
java.lang.Object
echoxul.view.ViewLocator
echoxul.view.locator.BaseViewLocator
echoxul.view.locator.DynamicViewLocator
- public class DynamicViewLocator
- extends BaseViewLocator
A ViewLocator which is not backed by any physical resources. The views
available are those added manually through calls to addView.
- Author:
- Terry Laurenzo
Method Summary |
void |
addView(java.lang.String path,
org.xml.sax.InputSource is)
|
void |
addView(java.lang.String path,
View view)
Programatically add a view to the map. |
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DynamicViewLocator
public DynamicViewLocator()
addView
public void addView(java.lang.String path,
View view)
- Programatically add a view to the map. If it already exists, it will
be replaced.
- Parameters:
path
- view
-
addView
public void addView(java.lang.String path,
org.xml.sax.InputSource is)
throws java.lang.Exception
- Throws:
java.lang.Exception
lookupView
public View lookupView(java.lang.String path)
throws ViewNotFoundException
- Description copied from class:
ViewLocator
- Looks up a (potentially cached) view from the list of ViewResolvers registered with this
instance. The only syntax which is always supported is the one for looking up Java classpath
resources. See ViewComponent for details.
TODO: Fully document this method
- Specified by:
lookupView
in class ViewLocator
- Parameters:
path
- The resolver specific path string
- Returns:
- The View requested
- Throws:
ViewNotFoundException
- if the view cannot be found- See Also:
ViewLocator.lookupView(java.lang.String)
Copyright © 2004 Terry Laurenzo. All Rights Reserved.