public class DefaultEbeanServerFactory extends AbstractObjectFactory<com.avaje.ebean.EbeanServer> implements EbeanServerFactory
KEY_DEFAULT
Constructor and Description |
---|
DefaultEbeanServerFactory(Configuration configuration,
GriffonApplication application) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeDataSource(String dataSourceName) |
com.avaje.ebean.EbeanServer |
create(String name) |
protected com.avaje.ebean.EbeanServer |
createEbeanServer(Map<String,Object> config,
String ebeanServerName) |
void |
destroy(String name,
com.avaje.ebean.EbeanServer instance) |
Map<String,Object> |
getConfigurationFor(String ebeanServerName) |
protected DataSource |
getDataSource(String dataSourceName) |
Set<String> |
getEbeanServerNames() |
protected String |
getPluralKey() |
protected String |
getSingleKey() |
event, getApplication, getConfiguration, narrowConfig
@Inject public DefaultEbeanServerFactory(@Nonnull @Named(value="ebean") Configuration configuration, @Nonnull GriffonApplication application)
@Nonnull public Set<String> getEbeanServerNames()
getEbeanServerNames
in interface EbeanServerFactory
@Nonnull public Map<String,Object> getConfigurationFor(@Nonnull String ebeanServerName)
getConfigurationFor
in interface EbeanServerFactory
@Nonnull protected String getSingleKey()
getSingleKey
in class AbstractObjectFactory<com.avaje.ebean.EbeanServer>
@Nonnull protected String getPluralKey()
getPluralKey
in class AbstractObjectFactory<com.avaje.ebean.EbeanServer>
@Nonnull public com.avaje.ebean.EbeanServer create(@Nonnull String name)
create
in interface ObjectFactory<com.avaje.ebean.EbeanServer>
public void destroy(@Nonnull String name, @Nonnull com.avaje.ebean.EbeanServer instance)
destroy
in interface ObjectFactory<com.avaje.ebean.EbeanServer>
@Nonnull protected com.avaje.ebean.EbeanServer createEbeanServer(@Nonnull Map<String,Object> config, @Nonnull String ebeanServerName)
@Nonnull protected DataSource getDataSource(@Nonnull String dataSourceName)