net.esper.core
Class EPServicesContextFactoryDefault

java.lang.Object
  extended by net.esper.core.EPServicesContextFactoryDefault
All Implemented Interfaces:
EPServicesContextFactory

public class EPServicesContextFactoryDefault
extends Object
implements EPServicesContextFactory

Factory for services context.


Constructor Summary
EPServicesContextFactoryDefault()
           
 
Method Summary
 EPServicesContext createServicesContext(EPServiceProvider epServiceProvider, ConfigurationSnapshot configSnapshot)
          Factory method for a new set of engine services.
protected static void init(EventAdapterServiceImpl eventAdapterService, ConfigurationSnapshot configSnapshot)
          Initialize event adapter service for config snapshot.
protected static DatabaseConfigService makeDatabaseRefService(ConfigurationSnapshot configSnapshot, SchedulingService schedulingService)
          Creates the database config service.
protected static EngineImportService makeEngineImportService(ConfigurationSnapshot configSnapshot)
          Constructs the auto import service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EPServicesContextFactoryDefault

public EPServicesContextFactoryDefault()
Method Detail

createServicesContext

public EPServicesContext createServicesContext(EPServiceProvider epServiceProvider,
                                               ConfigurationSnapshot configSnapshot)
Description copied from interface: EPServicesContextFactory
Factory method for a new set of engine services.

Specified by:
createServicesContext in interface EPServicesContextFactory
Parameters:
epServiceProvider - is the engine instance
configSnapshot - is a snapshot of configs at the time of engine creation
Returns:
services context

init

protected static void init(EventAdapterServiceImpl eventAdapterService,
                           ConfigurationSnapshot configSnapshot)
Initialize event adapter service for config snapshot.

Parameters:
eventAdapterService - is events adapter
configSnapshot - is the config snapshot

makeEngineImportService

protected static EngineImportService makeEngineImportService(ConfigurationSnapshot configSnapshot)
Constructs the auto import service.

Parameters:
configSnapshot - config info
Returns:
service

makeDatabaseRefService

protected static DatabaseConfigService makeDatabaseRefService(ConfigurationSnapshot configSnapshot,
                                                              SchedulingService schedulingService)
Creates the database config service.

Parameters:
configSnapshot - is the config snapshot
schedulingService - is the timer stuff
Returns:
database config svc