Interface SessionFactoryServiceInitiator<R extends Service>

    • 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)
        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 SessionFactory
        registry - The service registry. Can be used to locate services needed to fulfill initiation.
        Returns:
        The initiated service.