net.esper.view
Class ViewFactoryFactory

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

public final class ViewFactoryFactory
extends Object

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


Constructor Summary
ViewFactoryFactory()
           
 
Method Summary
protected static ViewFactory create(ViewSpec spec)
          Instantiates a view factory based on view name stored in the view spec.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewFactoryFactory

public ViewFactoryFactory()
Method Detail

create

protected static ViewFactory create(ViewSpec spec)
                             throws ViewProcessingException
Instantiates a view factory based on view name stored in the view spec.

Parameters:
spec - contains view name
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