net.esper.view
Class ViewFactory
java.lang.Object
net.esper.view.ViewFactory
public final class ViewFactory
- extends Object
Static factory for creating view instances based on a view specification and a given parent view.
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 |
ViewFactory
public ViewFactory()
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 intospec
- 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