net.esper.view
Class ViewFactory

java.lang.Object
  extended by net.esper.view.ViewFactory

public final class ViewFactory
extends java.lang.Object

Static factory for creating view instances based on a view specification and a given parent view.


Constructor Summary
ViewFactory()
           
 
Method Summary
protected static View create(Viewable parentView, ViewSpec spec)
          Instantiates a view based on view name and parameters stored in the view spec, and attempts to hook it up with a parent view.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewFactory

public ViewFactory()
Method Detail

create

protected static View create(Viewable parentView,
                             ViewSpec spec)
                      throws ViewProcessingException
Instantiates a view based on view name and parameters stored in the view spec, and attempts to hook it up with a parent view.

Parameters:
parentView - is the parent view to hook the new view into
spec - contains view name and parameters
Returns:
instantiated and hooked-up view
Throws:
ViewProcessingException - if the view name is wrong, parameters don't match view constructors, or the view refuses to hook up with its parent