Search in sources :

Example 1 with DiskDataStore

use of org.apache.wicket.pageStore.DiskDataStore in project wicket by apache.

the class DefaultPageManagerProvider method newDataStore.

protected IDataStore newDataStore() {
    StoreSettings storeSettings = getStoreSettings();
    Bytes maxSizePerSession = storeSettings.getMaxSizePerSession();
    File fileStoreFolder = storeSettings.getFileStoreFolder();
    return new DiskDataStore(application.getName(), fileStoreFolder, maxSizePerSession);
}
Also used : StoreSettings(org.apache.wicket.settings.StoreSettings) Bytes(org.apache.wicket.util.lang.Bytes) DiskDataStore(org.apache.wicket.pageStore.DiskDataStore) File(java.io.File)

Aggregations

File (java.io.File)1 DiskDataStore (org.apache.wicket.pageStore.DiskDataStore)1 StoreSettings (org.apache.wicket.settings.StoreSettings)1 Bytes (org.apache.wicket.util.lang.Bytes)1