@FunctionalInterface public interface SessionFactoryLookup
SessionFactory
by name.
Implementing classes resolve session factories keyed by String
from an underlying source such as a
Map
or the BeanFactory
.
AbstractRoutingSessionFactory
Modifier and Type | Method and Description |
---|---|
SessionFactory |
getSessionFactory(String sessionFactoryName)
Implementations must implement this method to retrieve the
SessionFactory identified by the given name from
their backing store. |
SessionFactory getSessionFactory(String sessionFactoryName) throws SessionFactoryLookupFailureException
SessionFactory
identified by the given name from
their backing store.sessionFactoryName
- the name of the SessionFactory
.SessionFactory
(never null).SessionFactoryLookupFailureException
- if the lookup failed.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.