Class SessionFactoryProviderWrapper

  • All Implemented Interfaces:
    SessionFactoryProvider, Supplier<SessionFactory>

    @Deprecated
    public class SessionFactoryProviderWrapper
    extends Object
    implements SessionFactoryProvider
    Deprecated.
    Will be replaced by a lambda for Supplier<SessionFactory>.
    This implementation wraps an 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.
    • Constructor Detail

      • SessionFactoryProviderWrapper

        public SessionFactoryProviderWrapper​(AbstractAuthenticatedService service)
        Deprecated.
        Creates a new session factory provider wrapping the designated AbstractAuthenticatedService.
        Parameters:
        service - The service from which to get the session factory.
    • Method Detail

      • getSessionFactory

        public SessionFactory getSessionFactory()
        Deprecated.
        Description copied from interface: SessionFactoryProvider
        Gets 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:
        getSessionFactory in interface SessionFactoryProvider
        Returns:
        The current session factory to be used for creating session tokens.