Package org.eclipse.rap.rwt.service
Interface SettingStoreFactory
-
- All Known Implementing Classes:
FileSettingStoreFactory
public interface SettingStoreFactoryA setting store factory is responsible for creating and initializing a specific kind of setting store. To contribute a custom setting store implementation, an implementation of this interface must be provided in anApplicationConfiguration(seeApplication.setSettingStoreFactory(SettingStoreFactory)).At runtime, the framework will use a single factory implementation to create new setting store instances. If no custom factory is specified, the
FileSettingStoreFactorywill be used as default.- Since:
- 2.0
- See Also:
Application.setSettingStoreFactory(SettingStoreFactory)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SettingStorecreateSettingStore(java.lang.String id)Creates and initializes a new specific setting store instance.
-
-
-
Method Detail
-
createSettingStore
SettingStore createSettingStore(java.lang.String id)
Creates and initializes a new specific setting store instance.- Parameters:
id- the ID for the setting store to create, must not benullor empty- Returns:
- the created setting store, never
null - Throws:
java.lang.IllegalArgumentException- if the given id is empty
-
-