public class DefaultDatabaseFactory extends AbstractObjectFactory<org.jcouchdb.db.Database> implements DatabaseFactory
KEY_DEFAULT| Constructor and Description |
|---|
DefaultDatabaseFactory(Configuration configuration,
GriffonApplication application) |
| Modifier and Type | Method and Description |
|---|---|
org.jcouchdb.db.Database |
create(String name) |
void |
destroy(String name,
org.jcouchdb.db.Database instance) |
Map<String,Object> |
getConfigurationFor(String databaseName) |
Set<String> |
getDatabaseNames() |
protected String |
getPluralKey() |
protected String |
getSingleKey() |
event, getApplication, getConfiguration, narrowConfig@Inject public DefaultDatabaseFactory(@Nonnull @Named(value="jcouchdb") Configuration configuration, @Nonnull GriffonApplication application)
@Nonnull public Set<String> getDatabaseNames()
getDatabaseNames in interface DatabaseFactory@Nonnull public Map<String,Object> getConfigurationFor(@Nonnull String databaseName)
getConfigurationFor in interface DatabaseFactory@Nonnull protected String getSingleKey()
getSingleKey in class AbstractObjectFactory<org.jcouchdb.db.Database>@Nonnull protected String getPluralKey()
getPluralKey in class AbstractObjectFactory<org.jcouchdb.db.Database>@Nonnull public org.jcouchdb.db.Database create(@Nonnull String name)
create in interface ObjectFactory<org.jcouchdb.db.Database>public void destroy(@Nonnull String name, @Nonnull org.jcouchdb.db.Database instance)
destroy in interface ObjectFactory<org.jcouchdb.db.Database>