Commit c00dbc6c authored by Stephane Nicoll's avatar Stephane Nicoll

Fix merge commit

parent d9a42a51
......@@ -58,8 +58,6 @@ public class EntityManagerFactoryBuilder {
private AsyncTaskExecutor bootstrapExecutor;
private EntityManagerFactoryBeanCallback callback;
/**
* Create a new instance passing in the common pieces that will be shared if multiple
* EntityManagerFactory instances are created.
......@@ -107,15 +105,6 @@ public class EntityManagerFactoryBuilder {
this.bootstrapExecutor = bootstrapExecutor;
}
/**
* An optional callback for new entity manager factory beans.
* @param callback the entity manager factory bean callback
*/
@Deprecated
public void setCallback(EntityManagerFactoryBeanCallback callback) {
this.callback = callback;
}
/**
* A fluent builder for a LocalContainerEntityManagerFactoryBean.
*/
......@@ -214,7 +203,6 @@ public class EntityManagerFactoryBuilder {
return this;
}
@SuppressWarnings("deprecation")
public LocalContainerEntityManagerFactoryBean build() {
LocalContainerEntityManagerFactoryBean entityManagerFactoryBean = new LocalContainerEntityManagerFactoryBean();
if (EntityManagerFactoryBuilder.this.persistenceUnitManager != null) {
......@@ -249,24 +237,9 @@ public class EntityManagerFactoryBuilder {
entityManagerFactoryBean.setBootstrapExecutor(
EntityManagerFactoryBuilder.this.bootstrapExecutor);
}
if (EntityManagerFactoryBuilder.this.callback != null) {
EntityManagerFactoryBuilder.this.callback
.execute(entityManagerFactoryBean);
}
return entityManagerFactoryBean;
}
}
/**
* A callback for new entity manager factory beans created by a Builder.
*/
@FunctionalInterface
@Deprecated
public interface EntityManagerFactoryBeanCallback {
void execute(LocalContainerEntityManagerFactoryBean factory);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment