echoxul.view.locator
Class DelegatingViewLocator

java.lang.Object
  extended byechoxul.view.ViewLocator
      extended byechoxul.view.locator.BaseViewLocator
          extended byechoxul.view.locator.DelegatingViewLocator
Direct Known Subclasses:
CachingViewLocator

public class DelegatingViewLocator
extends BaseViewLocator

The DelegatingViewLocator loads a View from the first ResourceLocator which can find the resource.

Author:
Terry Laurenzo

Field Summary
 
Fields inherited from class echoxul.view.ViewLocator
ATTRIBUTE_NAME
 
Constructor Summary
DelegatingViewLocator(ResourceLocator[] rl)
           
 
Method Summary
 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

DelegatingViewLocator

public DelegatingViewLocator(ResourceLocator[] rl)
Method Detail

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.