net.esper.view
Class ViewResolutionServiceImpl

java.lang.Object
  extended by net.esper.view.ViewResolutionServiceImpl
All Implemented Interfaces:
ViewResolutionService

public class ViewResolutionServiceImpl
extends Object
implements ViewResolutionService

Resolves view namespace and name to view factory class, using configuration.


Constructor Summary
ViewResolutionServiceImpl(List<ConfigurationPlugInView> configurationPlugInViews)
          Ctor.
 
Method Summary
 ViewFactory create(ViewSpec spec)
          Instantiates a ViewFactory based on the view namespace and 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

ViewResolutionServiceImpl

public ViewResolutionServiceImpl(List<ConfigurationPlugInView> configurationPlugInViews)
                          throws ConfigurationException
Ctor.

Parameters:
configurationPlugInViews - is the configured plug-in views
Throws:
ConfigurationException - when plug-in views cannot be solved
Method Detail

create

public ViewFactory create(ViewSpec spec)
                   throws ViewProcessingException
Description copied from interface: ViewResolutionService
Instantiates a ViewFactory based on the view namespace and name stored in the view spec.

Does not actually use the view factory object created.

Specified by:
create in interface ViewResolutionService
Parameters:
spec - contains view name and namespace
Returns:
ViewFactory instance
Throws:
ViewProcessingException - if the view namespace or name cannot resolve