Package org.eclipse.rap.rwt.service
Class FileSettingStoreFactory
- java.lang.Object
-
- org.eclipse.rap.rwt.service.FileSettingStoreFactory
-
- All Implemented Interfaces:
SettingStoreFactory
public final class FileSettingStoreFactory extends java.lang.Object implements SettingStoreFactory
A setting store factory that creates instances ofFileSettingStore
.This implementation uses the following strategy to determine the path for persisting the data of the session store instances.
- Use the directory specified by the init-parameter
"org.eclipse.rap.rwt.service.FileSettingStore.dir"
in the web.xml. - Use the directory specified by the
"javax.servlet.context.tempdir"
attribute in the servlet context. - Use the directory specified by the
"java.io.tempdir"
property.
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description FileSettingStoreFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SettingStore
createSettingStore(java.lang.String id)
Creates and initializes a new specific setting store instance.
-
-
-
Method Detail
-
createSettingStore
public SettingStore createSettingStore(java.lang.String id)
Description copied from interface:SettingStoreFactory
Creates and initializes a new specific setting store instance.- Specified by:
createSettingStore
in interfaceSettingStoreFactory
- Parameters:
id
- the ID for the setting store to create, must not benull
or empty- Returns:
- the created setting store, never
null
-
-