Interface SessionFactoryProvider
-
- All Superinterfaces:
Supplier<SessionFactory>
- All Known Implementing Classes:
SessionFactoryProviderWrapper
@Deprecated public interface SessionFactoryProvider extends Supplier<SessionFactory>
Deprecated.Will be replaced bySupplier<SessionFactory>
.This interface provides access to a session factory. It is used instead of directly providing a session factory in cases where the session factory may change. Always get the session factory returned by this interface before using it! Do not store the session factory internally.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default SessionFactory
get()
Deprecated.SessionFactory
getSessionFactory()
Deprecated.Gets the current session factory to be used for creating session tokens.
-
-
-
Method Detail
-
getSessionFactory
SessionFactory getSessionFactory()
Deprecated.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.- Returns:
- The current session factory to be used for creating session tokens.
-
get
default SessionFactory get()
Deprecated.- Specified by:
get
in interfaceSupplier<SessionFactory>
-
-