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(String engineURI, ConfigurationSnapshot configSnapshot)
          Factory method for a new set of engine services.
protected static void init(EventAdapterServiceBase eventAdapterService, ConfigurationSnapshot configSnapshot)
          Initialize event adapter service for config snapshot.
protected static AutoImportService makeAutoImportService(ConfigurationSnapshot configSnapshot)
          Constructs the auto import service.
protected static DatabaseConfigService makeDatabaseRefService(ConfigurationSnapshot configSnapshot, SchedulingService schedulingService)
          Creates the database config 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(String engineURI,
                                               ConfigurationSnapshot configSnapshot)
Description copied from interface: EPServicesContextFactory
Factory method for a new set of engine services.

Specified by:
createServicesContext in interface EPServicesContextFactory
Parameters:
engineURI - is the URI for the engine or null if this is the default engine
configSnapshot - is a snapshot of configs at the time of engine creation
Returns:
services context

init

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

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

makeAutoImportService

protected static AutoImportService makeAutoImportService(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