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

com.avaje.ebean.common.SpiContainer Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebean.common;

import com.avaje.ebean.EbeanServer;
import com.avaje.ebean.config.ServerConfig;

/**
 * Creates the EbeanServer implementations. This is used internally by the EbeanServerFactory and is not currently
 * exposed as public API.
 */
public interface SpiContainer {

  /**
   * Create the EbeanServer for a given configuration.
   * 
   * @param configuration
   *          The configuration information for this server.
   */
  EbeanServer createServer(ServerConfig configuration);

  /**
   * Create an EbeanServer just using the name.
   * 

* In this case the dataSource parameters etc will be defined on the global * avaje.properties file. *

*/ EbeanServer createServer(String name); /** * Shutdown any Ebean wide resources such as clustering. */ void shutdown(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy