public class NinjaEbeanServerLifecycle extends Object
| Constructor and Description |
|---|
NinjaEbeanServerLifecycle(org.slf4j.Logger logger,
ninja.utils.NinjaProperties ninjaProperties) |
| Modifier and Type | Method and Description |
|---|---|
io.ebean.EbeanServer |
createEbeanServer(io.ebean.config.ServerConfig serverConfig)
Creates the Ebean server with the prepared server config.
|
io.ebean.EbeanServer |
getEbeanServer() |
void |
startServer()
This method reads the configuration properties from
your application.conf file and configures Ebean accordingly.
|
@Inject
public NinjaEbeanServerLifecycle(org.slf4j.Logger logger,
ninja.utils.NinjaProperties ninjaProperties)
public final void startServer()
public io.ebean.EbeanServer createEbeanServer(io.ebean.config.ServerConfig serverConfig)
serverConfig - The prepared server configpublic io.ebean.EbeanServer getEbeanServer()
Copyright © 2020. All rights reserved.