mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
33 lines
797 B
Java
33 lines
797 B
Java
package io.ebean.service;
|
|
|
|
import io.ebean.EbeanServer;
|
|
import io.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.
|
|
* <p>
|
|
* In this case the dataSource parameters etc will be defined on the global
|
|
* avaje.properties file.
|
|
* </p>
|
|
*/
|
|
EbeanServer createServer(String name);
|
|
|
|
/**
|
|
* Shutdown any Ebean wide resources such as clustering.
|
|
*/
|
|
void shutdown();
|
|
}
|