echoxul.view.locator
Class BaseViewLocator

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

public abstract class BaseViewLocator
extends ViewLocator

Provides basic implementations common to all echoxul implementation.

Author:
Terry Laurenzo

Field Summary
 
Fields inherited from class echoxul.view.ViewLocator
ATTRIBUTE_NAME
 
Constructor Summary
BaseViewLocator()
           
 
Method Summary
protected  View loadXULView(org.xml.sax.InputSource is)
          Load an XUL view from an InputSource
 View lookupView(java.lang.Class clazz)
          Takes the class name and replaces all periods with slashes and prepending a slash.
 
Methods inherited from class echoxul.view.ViewLocator
getInstance, lookupView, setInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseViewLocator

public BaseViewLocator()
Method Detail

loadXULView

protected View loadXULView(org.xml.sax.InputSource is)
                    throws java.lang.Exception
Load an XUL view from an InputSource

Parameters:
is -
Returns:
Created View
Throws:
java.lang.Exception

lookupView

public View lookupView(java.lang.Class clazz)
                throws ViewNotFoundException
Takes the class name and replaces all periods with slashes and prepending a slash.

Specified by:
lookupView in class ViewLocator
Parameters:
clazz - The class to lookup.
Returns:
The ViewRequested
Throws:
ViewNotFoundException - if the view cannot be found
See Also:
ViewLocator.lookupView(java.lang.Class)


Copyright © 2004 Terry Laurenzo. All Rights Reserved.