public class SessionFactoryProviderWrapper extends java.lang.Object implements SessionFactoryProvider
AbstractAuthenticatedService and
provides its session factory as SessionFactoryProvider. Thus the
AbstractAuthenticatedService does not need to have public access
to its session factory. Additionally, it returns always the right session
factory; the session factory need not be changed in this provider.| Modifier and Type | Field and Description |
|---|---|
protected AbstractAuthenticatedService |
service
The wrapped service providing the session factory.
|
| Constructor and Description |
|---|
SessionFactoryProviderWrapper(AbstractAuthenticatedService service)
Creates a new session factory provider wrapping the designated
AbstractAuthenticatedService. |
| Modifier and Type | Method and Description |
|---|---|
SessionFactory |
getSessionFactory()
Gets the current session factory to be used for creating session tokens.
|
protected final AbstractAuthenticatedService service
public SessionFactoryProviderWrapper(AbstractAuthenticatedService service)
AbstractAuthenticatedService.service - The service from which to get the session factory.public SessionFactory getSessionFactory()
SessionFactoryProvidergetSessionFactory in interface SessionFactoryProvider