public class NinjaEbeanServerLifecycle extends Object
As end-user you should NOT use this method directly. Instead simply inject EbeanServer into the class you want to use. The interface EbeanServer is configured by this class and provided by a provider.
| Constructor and Description |
|---|
NinjaEbeanServerLifecycle(org.slf4j.Logger logger,
ninja.utils.NinjaProperties ninjaProperties) |
| Modifier and Type | Method and Description |
|---|---|
com.avaje.ebean.EbeanServer |
createEbeanServer(com.avaje.ebean.config.ServerConfig serverConfig)
Creates the Ebean server with the prepared server config.
|
com.avaje.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 com.avaje.ebean.EbeanServer createEbeanServer(com.avaje.ebean.config.ServerConfig serverConfig)
serverConfig - The prepared server configpublic com.avaje.ebean.EbeanServer getEbeanServer()
Copyright © 2015. All Rights Reserved.