Package org.hibernate.service.internal
Class SessionFactoryServiceRegistryBuilderImpl
- java.lang.Object
-
- org.hibernate.service.internal.SessionFactoryServiceRegistryBuilderImpl
-
- All Implemented Interfaces:
SessionFactoryServiceRegistryBuilder
public class SessionFactoryServiceRegistryBuilderImpl extends Object implements SessionFactoryServiceRegistryBuilder
-
-
Constructor Summary
Constructors Constructor Description SessionFactoryServiceRegistryBuilderImpl(ServiceRegistryImplementor parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SessionFactoryServiceRegistryBuilder
addInitiator(SessionFactoryServiceInitiator<?> initiator)
Adds a service initiator.<R extends Service>
SessionFactoryServiceRegistryBuilderaddService(Class<R> serviceRole, R service)
Adds a user-provided service.SessionFactoryServiceRegistry
buildSessionFactoryServiceRegistry(SessionFactoryImplementor sessionFactory, SessionFactoryOptions options)
-
-
-
Constructor Detail
-
SessionFactoryServiceRegistryBuilderImpl
public SessionFactoryServiceRegistryBuilderImpl(ServiceRegistryImplementor parent)
-
-
Method Detail
-
addInitiator
public SessionFactoryServiceRegistryBuilder addInitiator(SessionFactoryServiceInitiator<?> initiator)
Adds a service initiator.- Specified by:
addInitiator
in interfaceSessionFactoryServiceRegistryBuilder
- Parameters:
initiator
- The initiator to be added- Returns:
- this, for method chaining
-
addService
public <R extends Service> SessionFactoryServiceRegistryBuilder addService(Class<R> serviceRole, R service)
Adds a user-provided service.- Specified by:
addService
in interfaceSessionFactoryServiceRegistryBuilder
- Parameters:
serviceRole
- The role of the service being addedservice
- The service implementation- Returns:
- this, for method chaining
-
buildSessionFactoryServiceRegistry
public SessionFactoryServiceRegistry buildSessionFactoryServiceRegistry(SessionFactoryImplementor sessionFactory, SessionFactoryOptions options)
-
-