Prior to Alpha1 we should consider adding a "parameter object" argument to the {{org E . hibernate g . integrator.spi.Integrator# :
{code} void integrate ( Metadata metadata, BootstrapContext bootrapContext, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry); {code } } method
We should decide this for Alpha1 as it helps integrators more easily test this . E And as this is changing a signature that has been stable since 4 . g 0 that is important . We could also just add an overload :
{code} /** * existing form * * @deprecated (since 6.0) Use <link-to-other> instead */ @Deprecated void integrate( Metadata metadata, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry);
/** * new form */ default void integrate( Metadata metadata, BootstrapContext bootrapContext, SessionFactoryImplementor sessionFactory, SessionFactoryServiceRegistry serviceRegistry) { // simply call the legacy one, keeping implementors bytecode compatible. integrate( metadata, sessionFactory, serviceRegistry ) ; } {code}
Should we consider adding a "parameter object" argument instead?
|
|