public class DefaultObjectContainerHandler extends Object implements ObjectContainerHandler
Constructor and Description |
---|
DefaultObjectContainerHandler(ObjectContainerFactory objectContainerFactory,
ObjectContainerStorage objectContainerStorage) |
Modifier and Type | Method and Description |
---|---|
void |
closeDb4o() |
void |
closeDb4o(String dataSourceName) |
<R> R |
withDb4o(ObjectContainerCallback<R> callback) |
<R> R |
withDb4o(String dataSourceName,
ObjectContainerCallback<R> callback) |
@Inject public DefaultObjectContainerHandler(@Nonnull ObjectContainerFactory objectContainerFactory, @Nonnull ObjectContainerStorage objectContainerStorage)
@Nullable public <R> R withDb4o(@Nonnull ObjectContainerCallback<R> callback)
withDb4o
in interface ObjectContainerHandler
@Nullable public <R> R withDb4o(@Nonnull String dataSourceName, @Nonnull ObjectContainerCallback<R> callback)
withDb4o
in interface ObjectContainerHandler
public void closeDb4o()
closeDb4o
in interface ObjectContainerHandler
public void closeDb4o(@Nonnull String dataSourceName)
closeDb4o
in interface ObjectContainerHandler