public class DefaultDbFactory extends AbstractObjectFactory<com.ohmdb.api.Db> implements DbFactory
KEY_DEFAULT
Constructor and Description |
---|
DefaultDbFactory(Configuration configuration,
GriffonApplication application) |
Modifier and Type | Method and Description |
---|---|
com.ohmdb.api.Db |
create(String name) |
void |
destroy(String name,
com.ohmdb.api.Db instance) |
Map<String,Object> |
getConfigurationFor(String dataSourceName) |
Set<String> |
getDataSourceNames() |
protected String |
getPluralKey() |
protected String |
getSingleKey() |
event, getApplication, getConfiguration, narrowConfig
@Inject public DefaultDbFactory(@Nonnull @Named(value="ohmdb") Configuration configuration, @Nonnull GriffonApplication application)
@Nonnull public Set<String> getDataSourceNames()
getDataSourceNames
in interface DbFactory
@Nonnull public Map<String,Object> getConfigurationFor(@Nonnull String dataSourceName)
getConfigurationFor
in interface DbFactory
@Nonnull protected String getSingleKey()
getSingleKey
in class AbstractObjectFactory<com.ohmdb.api.Db>
@Nonnull protected String getPluralKey()
getPluralKey
in class AbstractObjectFactory<com.ohmdb.api.Db>
@Nonnull public com.ohmdb.api.Db create(@Nonnull String name)
create
in interface ObjectFactory<com.ohmdb.api.Db>
public void destroy(@Nonnull String name, @Nonnull com.ohmdb.api.Db instance)
destroy
in interface ObjectFactory<com.ohmdb.api.Db>