Examples of IPageStore


Examples of org.apache.wicket.pageStore.IPageStore

    {
      int capacity = storeSettings.getAsynchronousQueueCapacity();
      dataStore = new AsynchronousDataStore(dataStore, capacity);
    }

    IPageStore pageStore = newPageStore(dataStore);
    return new PageStoreManager(application.getName(), pageStore, pageManagerContext);

  }
View Full Code Here

Examples of org.apache.wicket.pageStore.IPageStore

      // prepare for serialization and store the pages
      List<Serializable> serializedPages = new ArrayList<Serializable>();
      if (sessionCache != null)
      {
        IPageStore pageStore = getPageStore();
        for (IManageablePage p : sessionCache)
        {
          Serializable preparedPage;
          if (pageStore != null)
          {
            preparedPage = pageStore.prepareForSerialization(sessionId, p);
          }
          else
          {
            preparedPage = p;
          }
View Full Code Here

Examples of org.apache.wicket.pageStore.IPageStore

      List<Serializable> l = (List<Serializable>)s.readObject();

      // convert to temporary state after deserialization (will need to be processed
      // by convertAfterReadObject before the pages can be accessed)
      IPageStore pageStore = getPageStore();
      for (Serializable ser : l)
      {
        Object page;
        if (pageStore != null)
        {
          page = pageStore.restoreAfterSerialization(ser);
        }
        else
        {
          page = ser;
        }
View Full Code Here

Examples of org.apache.wicket.pageStore.IPageStore

    @Override
    public void valueUnbound(HttpSessionBindingEvent event)
    {
      // WICKET-5164 use the original sessionId
      IPageStore store = getPageStore();
      // store might be null if destroyed already
      if (store != null)
      {
        store.unbind(sessionId);
      }
    }
View Full Code Here

Examples of org.apache.wicket.pageStore.IPageStore

      // prepare for serialization and store the pages
      List<Serializable> serializedPages = new ArrayList<Serializable>();
      if (sessionCache != null)
      {
        IPageStore pageStore = getPageStore();
        for (IManageablePage p : sessionCache)
        {
          Serializable preparedPage;
          if (pageStore != null)
          {
            preparedPage = pageStore.prepareForSerialization(sessionId, p);
          }
          else
          {
            preparedPage = p;
          }
View Full Code Here

Examples of org.apache.wicket.pageStore.IPageStore

      List<Serializable> l = (List<Serializable>)s.readObject();

      // convert to temporary state after deserialization (will need to be processed
      // by convertAfterReadObject before the pages can be accessed)
      IPageStore pageStore = getPageStore();
      for (Serializable ser : l)
      {
        Object page;
        if (pageStore != null)
        {
          page = pageStore.restoreAfterSerialization(ser);
        }
        else
        {
          page = ser;
        }
View Full Code Here

Examples of org.apache.wicket.pageStore.IPageStore

    @Override
    public void valueUnbound(HttpSessionBindingEvent event)
    {
      // WICKET-5164 use the original sessionId
      IPageStore store = getPageStore();
      // store might be null if destroyed already
      if (store != null)
      {
        store.unbind(sessionId);
      }
    }
View Full Code Here

Examples of org.apache.wicket.pageStore.IPageStore

  }

  private PersistentPageManager newPersistentPageManager(String appName)
  {
    IDataStore dataStore = new InMemoryPageStore();
    IPageStore pageStore = new DefaultPageStore(appName, dataStore, 4);
    IPageManagerContext pageManagerContext = new DummyPageManagerContext();
    return new PersistentPageManager(appName, pageStore, pageManagerContext);
  }
View Full Code Here

Examples of org.apache.wicket.pageStore.IPageStore

  public IPageManager get(IPageManagerContext pageManagerContext)
  {
    IDataStore dataStore = new DiskDataStore(application.getName(), getMaxSizePerSession(),
      getFileChannelPoolCapacity());
    IPageStore pageStore = new DefaultPageStore(application.getName(), dataStore,
      getCacheSize());
    return new PersistentPageManager(application.getName(), pageStore, pageManagerContext);

  }
View Full Code Here

Examples of org.apache.wicket.pageStore.IPageStore

    {
      s.defaultWriteObject();

      // prepare for serialization and store the pages
      List<Serializable> l = new ArrayList<Serializable>();
      IPageStore pageStore = getPageStore();
      for (IManageablePage p : pages)
      {
        Serializable preparedPage;
        if (pageStore != null)
        {
          preparedPage = pageStore.prepareForSerialization(sessionId, p);
        }
        else
        {
          preparedPage = p;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.