Interface SessionFactoryLookup
- All Known Implementing Classes:
BeanFactorySessionFactoryLookup
,MapSessionFactoryLookup
,SingleSessionFactoryLookup
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Strategy interface for looking up
SessionFactory
by name.
Implementing classes resolve session factories keyed by String
from an underlying source such as a
Map
or the BeanFactory
.
- Since:
- 2.0
- Author:
- Mark Paluch
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiongetSessionFactory
(String sessionFactoryName) Implementations must implement this method to retrieve theSessionFactory
identified by the given name from their backing store.
-
Method Details
-
getSessionFactory
SessionFactory getSessionFactory(String sessionFactoryName) throws SessionFactoryLookupFailureException Implementations must implement this method to retrieve theSessionFactory
identified by the given name from their backing store.- Parameters:
sessionFactoryName
- the name of theSessionFactory
.- Returns:
- the
SessionFactory
(never null). - Throws:
SessionFactoryLookupFailureException
- if the lookup failed.
-