public interface ISessionFactory extends SessionFactory
| Modifier and Type | Method and Description |
|---|---|
IAppSessionFactory |
getAppSessionFactory(Class<? extends AppSession> sessionClass)
Retrieves the app session factory associated with an app session class
|
IContainer |
getContainer() |
<T extends AppSession> |
getNewAppSession(String sessionId,
ApplicationId applicationId,
Class<? extends AppSession> aClass,
Object... args)
Method used for creating a new App Session using the specified class with the
desired Application Id and Session Id.
|
void |
registerAppFacory(Class<? extends AppSession> sessionClass,
IAppSessionFactory factory)
Registers a new App Session factory.
|
void |
unRegisterAppFacory(Class<? extends AppSession> sessionClass)
Unregisters an existing App Session factory.
|
getNewAppSession, getNewAppSession, getNewRawSession, getNewSession, getNewSession, getSessionId, getSessionId<T extends AppSession> T getNewAppSession(String sessionId, ApplicationId applicationId, Class<? extends AppSession> aClass, Object... args) throws InternalException
sessionId - the session-id for this App Session, if desiredapplicationId - the application id for this sessionaClass - the class of the app session objectargs - InternalExceptionvoid registerAppFacory(Class<? extends AppSession> sessionClass, IAppSessionFactory factory)
sessionClass - the class of the objects being generated by the factoryfactory - the factory to generate app sessionsvoid unRegisterAppFacory(Class<? extends AppSession> sessionClass)
sessionClass - the class identifier for this factoryIAppSessionFactory getAppSessionFactory(Class<? extends AppSession> sessionClass)
sessionClass - the class identifier for the desired factoryIContainer getContainer()
Copyright © 2016. All Rights Reserved.