@Override protected ISessionStore newSessionStore() { return new SecondLevelCacheSessionStore(this, new IPageStore() { public void destroy() { } public Page getPage(String sessionId, String pagemap, int id, int versionNumber, int ajaxVersionNumber) { return null; } public void pageAccessed(String sessionId, Page page) { } public void removePage(String sessionId, String pagemap, int id) { } public void storePage(String sessionId, Page page) { } public void unbind(String sessionId) { } public boolean containsPage(String sessionId, String pageMapName, int pageId, int pageVersion) { return false; } }); } }
protected ISessionStore newSessionStore() return new SecondLevelCacheSessionStore(this, new IPageStore()
@Override protected ISessionStore newSessionStore() return new SecondLevelCacheSessionStore(this, new IPageStore()
/** * @see org.apache.wicket.Application#newSessionStore() */ protected ISessionStore newSessionStore() { return new SecondLevelCacheSessionStore(this, new DiskPageStore()); }
/** * @see org.apache.wicket.Application#newSessionStore() */ @Override protected ISessionStore newSessionStore() { DiskPageStore store; try { store = new DiskPageStore(); } catch (SecurityException e) { throw new WicketRuntimeException( "SecurityException occurred while creating DiskPageStore. Consider overriding newSessionStore() in your application and using a PageStore that doesn't required disk access like: " + HttpSessionStore.class.getName(), e); } return new SecondLevelCacheSessionStore(this, store); }