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