Example usage for org.apache.wicket.pageStore.memory HttpSessionDataStore HttpSessionDataStore

List of usage examples for org.apache.wicket.pageStore.memory HttpSessionDataStore HttpSessionDataStore

Introduction

In this page you can find the example usage for org.apache.wicket.pageStore.memory HttpSessionDataStore HttpSessionDataStore.

Prototype

public HttpSessionDataStore(IPageManagerContext pageManagerContext,
        IDataStoreEvictionStrategy evictionStrategy) 

Source Link

Document

Construct.

Usage

From source file:de.codepitbull.sessionstore.WicketApplication.java

License:Apache License

@Override
public void init() {
    super.init();
    getStoreSettings().setInmemoryCacheSize(1);
    setPageManagerProvider(new DefaultPageManagerProvider(this) {
        @Override//from ww  w  . ja v a2s  . c  o  m
        protected IDataStore newDataStore() {
            return new HttpSessionDataStore(getPageManagerContext(), new PageNumberEvictionStrategy(10));
        }
    });
}