Class SessionFactoryProviderWrapper
- java.lang.Object
-
- de.aristaflow.adept2.base.service.SessionFactoryProviderWrapper
-
- All Implemented Interfaces:
SessionFactoryProvider,Supplier<SessionFactory>
@Deprecated public class SessionFactoryProviderWrapper extends Object implements SessionFactoryProvider
Deprecated.Will be replaced by a lambda forSupplier<SessionFactory>.This implementation wraps anAbstractAuthenticatedServiceand provides its session factory asSessionFactoryProvider. Thus theAbstractAuthenticatedServicedoes 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractAuthenticatedServiceserviceDeprecated.The wrapped service providing the session factory.
-
Constructor Summary
Constructors Constructor Description SessionFactoryProviderWrapper(AbstractAuthenticatedService service)Deprecated.Creates a new session factory provider wrapping the designatedAbstractAuthenticatedService.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SessionFactorygetSessionFactory()Deprecated.Gets the current session factory to be used for creating session tokens.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.aristaflow.adept2.base.service.SessionFactoryProvider
get
-
-
-
-
Field Detail
-
service
protected final AbstractAuthenticatedService service
Deprecated.The wrapped service providing the session factory.
-
-
Constructor Detail
-
SessionFactoryProviderWrapper
public SessionFactoryProviderWrapper(AbstractAuthenticatedService service)
Deprecated.Creates a new session factory provider wrapping the designatedAbstractAuthenticatedService.- Parameters:
service- The service from which to get the session factory.
-
-
Method Detail
-
getSessionFactory
public SessionFactory getSessionFactory()
Deprecated.Description copied from interface:SessionFactoryProviderGets the current session factory to be used for creating session tokens. Do not store the factory since it may change any time. Only the current session factory should be used.- Specified by:
getSessionFactoryin interfaceSessionFactoryProvider- Returns:
- The current session factory to be used for creating session tokens.
-
-