Extract org.hibernate.internal.SessionFactoryImpl#prepareEventListeners from SessionFactoryImpl

Description

This could could be run as part of the metadata preparation; this would simplify some thing in Quarkus.

Most importantly, it removes some code from SessionFactoryImpl which is large enough.

Environment

None

Assignee

Nathan Xu

Reporter

Sanne Grinovero

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Priority

Minor
Configure