Package io.ebeaninternal.server.core
Class DefaultContainer
- java.lang.Object
-
- io.ebeaninternal.server.core.DefaultContainer
-
- All Implemented Interfaces:
SpiContainer
public class DefaultContainer extends Object implements SpiContainer
Default Server side implementation of ServerFactory.
-
-
Constructor Summary
Constructors Constructor Description DefaultContainer(ContainerConfig containerConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SpiEbeanServer
createServer(ServerConfig serverConfig)
Create the implementation from the configuration.SpiEbeanServer
createServer(String name)
Create the server reading configuration information from ebean.properties.void
shutdown()
Shutdown any Ebean wide resources such as clustering.
-
-
-
Constructor Detail
-
DefaultContainer
public DefaultContainer(ContainerConfig containerConfig)
-
-
Method Detail
-
shutdown
public void shutdown()
Description copied from interface:SpiContainer
Shutdown any Ebean wide resources such as clustering.- Specified by:
shutdown
in interfaceSpiContainer
-
createServer
public SpiEbeanServer createServer(String name)
Create the server reading configuration information from ebean.properties.- Specified by:
createServer
in interfaceSpiContainer
-
createServer
public SpiEbeanServer createServer(ServerConfig serverConfig)
Create the implementation from the configuration.- Specified by:
createServer
in interfaceSpiContainer
- Parameters:
serverConfig
- The configuration information for this database.
-
-