public class QuerySessionFactoryProvider extends java.lang.Object implements QuerySessionFactory, QuerySessionFactoryRegistry
Constructor and Description |
---|
QuerySessionFactoryProvider() |
Modifier and Type | Method and Description |
---|---|
QuerySession |
createSession(java.net.URI eventStoreURI,
QuerySessionContext context)
Create a query session to the Event Store instance specified by URL.
|
void |
deregisterSessionFactory(java.lang.String scheme)
This message deregisters the session factory implementation for the given scheme
|
void |
registerSessionFactory(java.lang.String scheme,
QuerySessionFactory factory)
This method is provided to allow factory implementation modules to register with
the service implementation.
|
public void registerSessionFactory(java.lang.String scheme, QuerySessionFactory factory)
QuerySessionFactoryRegistry
registerSessionFactory
in interface QuerySessionFactoryRegistry
scheme
- The scheme identifying the Event Store resourcefactory
- The factory implementation to create query sessions for the specified scheme.public void deregisterSessionFactory(java.lang.String scheme)
QuerySessionFactoryRegistry
deregisterSessionFactory
in interface QuerySessionFactoryRegistry
scheme
- The scheme identifying the Event Store resourcepublic QuerySession createSession(java.net.URI eventStoreURI, QuerySessionContext context) throws QuerySessionException
QuerySessionFactory
createSession
in interface QuerySessionFactory
eventStoreURI
- URI indicating the type and location of the Event Store instance.context
- properties used to create and establish the query session.QuerySessionException
- on error.