All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeaninternal.server.deploy.BeanManagerFactory Maven / Gradle / Ivy

There is a newer version: 15.8.0
Show newest version
package io.ebeaninternal.server.deploy;

import io.ebean.config.dbplatform.DatabasePlatform;
import io.ebeaninternal.server.persist.BeanPersisterFactory;
import io.ebeaninternal.server.persist.dml.DmlBeanPersisterFactory;

/**
 * Creates BeanManagers.
 */
final class BeanManagerFactory {

  private final BeanPersisterFactory persisterFactory;

  BeanManagerFactory(DatabasePlatform dbPlatform) {
    persisterFactory = new DmlBeanPersisterFactory(dbPlatform);
  }

  public  BeanManager create(BeanDescriptor desc) {
    return new BeanManager<>(desc, persisterFactory.create(desc));
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy