com.espertech.esper.core
Class EPServicesContextFactoryDefault

java.lang.Object
  extended by com.espertech.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, ConfigurationInformation configSnapshot)
          Factory method for a new set of engine services.
protected static void init(EventAdapterService eventAdapterService, ConfigurationInformation configSnapshot)
          Initialize event adapter service for config snapshot.
protected static void initVariables(VariableService variableService, Map<String,ConfigurationVariable> variables)
          Adds configured variables to the variable service.
protected static DatabaseConfigService makeDatabaseRefService(ConfigurationInformation configSnapshot, SchedulingService schedulingService)
          Creates the database config service.
protected static EngineImportService makeEngineImportService(ConfigurationInformation 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,
                                               ConfigurationInformation 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

initVariables

protected static void initVariables(VariableService variableService,
                                    Map<String,ConfigurationVariable> variables)
Adds configured variables to the variable service.

Parameters:
variableService - service to add to
variables - configured variables

init

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

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

makeEngineImportService

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

Parameters:
configSnapshot - config info
Returns:
service

makeDatabaseRefService

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

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

© 2007 EsperTech Inc.
All rights reserved.
Visit us at espertech.com