HHH-12173 Restore backward compatibility in ExtendedBeanManager

This commit is contained in:
Yoann Rodière 2017-12-15 13:52:59 +01:00
parent 5176828e2a
commit c873b13be8
1 changed files with 14 additions and 0 deletions

View File

@ -11,4 +11,18 @@ package org.hibernate.jpa.event.spi.jpa;
*/
@Deprecated
public interface ExtendedBeanManager extends org.hibernate.resource.beans.spi.ExtendedBeanManager {
void registerLifecycleListener(LifecycleListener lifecycleListener);
@Override
default void registerLifecycleListener(org.hibernate.resource.beans.spi.ExtendedBeanManager.LifecycleListener lifecycleListener) {
registerLifecycleListener( lifecycleListener::beanManagerInitialized );
}
/**
* @deprecated Use {@link org.hibernate.resource.beans.spi.ExtendedBeanManager.LifecycleListener} instead
*/
@Deprecated
interface LifecycleListener extends org.hibernate.resource.beans.spi.ExtendedBeanManager.LifecycleListener {
}
}