|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.avaje.ebean.EbeanServerFactory
public class EbeanServerFactory
Creates EbeanServer instances.
This uses either a ServerConfig or properties in the ebean.properties file to configure and create a EbeanServer instance.
The EbeanServer instance can either be registered with the Ebean singleton or
not. The Ebean singleton effectively holds a map of EbeanServers by a name.
If the EbeanServer is registered with the Ebean singleton you can retrieve it
later via Ebean.getServer(String)
.
One EbeanServer can be nominated as the 'default/primary' EbeanServer. Many
methods on the Ebean singleton such as Ebean.find(Class)
are just a
convenient way of using the 'default/primary' EbeanServer.
Constructor Summary | |
---|---|
EbeanServerFactory()
|
Method Summary | |
---|---|
static EbeanServer |
create(ServerConfig config)
Create using the ServerConfig object to configure the server. |
static EbeanServer |
create(String name)
Create using ebean.properties to configure the server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EbeanServerFactory()
Method Detail |
---|
public static EbeanServer create(String name)
public static EbeanServer create(ServerConfig config)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |