|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ops4j.store.StoreFactory
public class StoreFactory
Factory to create one or the other type of stores. Mostly deals with the fact if you really need your own store or can live with a shared instance. (better)
| Constructor Summary | |
|---|---|
StoreFactory()
|
|
| Method Summary | |
|---|---|
static Store<InputStream> |
anonymousStore()
If the store must be unique, here is it. |
static Store<InputStream> |
defaultStore()
Get a default store instance. |
static Store<InputStream> |
sharedLocalStore()
Get a fixed folder on disk as store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StoreFactory()
| Method Detail |
|---|
public static Store<InputStream> defaultStore()
sharedLocalStore()public static Store<InputStream> sharedLocalStore()
new File( System.getProperty( "java.io.tmpdir" ) + "/tb"
}
public static Store<InputStream> anonymousStore()
throws IOException
IOException - in case no temp folder has been found.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||