Package org.hibernate.service.spi
Interface SessionFactoryServiceInitiator<R extends Service>
-
- All Superinterfaces:
ServiceInitiator<R>
- All Known Implementing Classes:
CacheInitiator,NativeQueryInterpreterInitiator
public interface SessionFactoryServiceInitiator<R extends Service> extends ServiceInitiator<R>
Contract for an initiator of services that target the specialized service registrySessionFactoryServiceRegistry
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description RinitiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)Deprecated.default RinitiateService(SessionFactoryServiceInitiatorContext context)Initiates the managed service.-
Methods inherited from interface org.hibernate.service.spi.ServiceInitiator
getServiceInitiated
-
-
-
-
Method Detail
-
initiateService
default R initiateService(SessionFactoryServiceInitiatorContext context)
Initiates the managed service. Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete- Parameters:
context- Access to initialization contextual info- Returns:
- The initiated service.
-
initiateService
@Deprecated R initiateService(SessionFactoryImplementor sessionFactory, SessionFactoryOptions sessionFactoryOptions, ServiceRegistryImplementor registry)
Deprecated.Initiates the managed service. Note for implementors: signature is guaranteed to change once redesign of SessionFactory building is complete- Parameters:
sessionFactory- The session factory. Note the the session factory is still in flux; care needs to be taken in regards to what you call.sessionFactoryOptions- Options specified for building the SessionFactoryregistry- The service registry. Can be used to locate services needed to fulfill initiation.- Returns:
- The initiated service.
-
-