com.avaje.ebean.common
Interface BootupEbeanManager


public interface BootupEbeanManager

Creates the EbeanServer implementations. This is used by the Ebean singleton to determine the implementation for each server name.

Note that on a remote client it is expected that this factory will return EbeanServers that behave as a proxy using http or tcp sockets etc to talk to the EbeanServer on the application server.


Method Summary
 EbeanServer createServer(ServerConfig configuration)
          Create the EbeanServer for a given configuration.
 EbeanServer createServer(String name)
          Create an EbeanServer just using the name.
 void shutdown()
          Shutdown any Ebean wide resources such as clustering.
 

Method Detail

createServer

EbeanServer createServer(ServerConfig configuration)
Create the EbeanServer for a given configuration.

Parameters:
configuration - The configuration information for this server.

createServer

EbeanServer createServer(String name)
Create an EbeanServer just using the name.

In this case the dataSource parameters etc will be defined on the global avaje.properties file.


shutdown

void shutdown()
Shutdown any Ebean wide resources such as clustering.



Copyright © 2010. All Rights Reserved.