public interface SubStore
Modifier and Type | Method and Description |
---|---|
void |
prepareDestroy()
Informs the
SubStore that the service is being destroyed
and it should perform any necessary cleanup (closing files for example). |
void |
setDirectory(File dir)
Gives the
SubStore a piece of the file system to
use for its store. |
String |
subDirectory()
If this components wants its own sub-directory, it should return
a non-
null string that will be its sub-directory's name. |
String subDirectory()
null
string that will be its sub-directory's name.
If it does not need its own sub-directory this method should return
null
.void setDirectory(File dir) throws ConfigurationException, IOException
SubStore
a piece of the file system to
use for its store.dir
- the directory to useIOException
- if there is a problem initializing its store
or recovering its stateConfigurationException
- if this is a problem configuring this
objectvoid prepareDestroy()
SubStore
that the service is being destroyed
and it should perform any necessary cleanup (closing files for example).
The store does not need to delete it's data.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.