Package org.apache.wicket.serialize

Examples of org.apache.wicket.serialize.ISerializer


  }

  protected IPageStore newPageStore(IDataStore dataStore)
  {
    int inmemoryCacheSize = getStoreSettings().getInmemoryCacheSize();
    ISerializer pageSerializer = application.getFrameworkSettings().getSerializer();
    return new DefaultPageStore(pageSerializer, dataStore, inmemoryCacheSize);
//    return new PerSessionPageStore(pageSerializer, dataStore, inmemoryCacheSize);
  }
View Full Code Here


    {
      return null;
    }
    else
    {
      ISerializer serializer;
      if (Application.exists())
      {
        serializer = Application.get().getFrameworkSettings().getSerializer();
      }
      else
      {
        serializer = new JavaSerializer(WicketObjects.class.getName());
      }
      byte[] serialized = serializer.serialize(object);
      Object deserialized = serializer.deserialize(serialized);
      return (T) deserialized;
    }
  }
View Full Code Here

      if (object == null)
      {
        return 0;
      }

      ISerializer serializer;
      if (Application.exists())
      {
        serializer = Application.get().getFrameworkSettings().getSerializer();
      }
      else
      {
        serializer = new JavaSerializer(SerializingObjectSizeOfStrategy.class.getName());
      }
      byte[] serialized = serializer.serialize(object);
      int size = -1;
      if (serialized != null)
      {
        size = serialized.length;
      }
View Full Code Here

      if (object == null)
      {
        return 0;
      }

      ISerializer serializer;
      if (Application.exists())
      {
        serializer = Application.get().getFrameworkSettings().getSerializer();
      }
      else
      {
        serializer = new JavaSerializer("SerializingObjectSizeOfStrategy");
      }
      byte[] serialized = serializer.serialize(object);
      int size = -1;
      if (serialized != null)
      {
        size = serialized.length;
      }
View Full Code Here

    {
      if (object == null)
      {
        return 0;
      }
      ISerializer serializer;
      if (Application.exists())
      {
        serializer = Application.get().getFrameworkSettings().getSerializer();
      }
      else
      {
        serializer = new JavaSerializer("SerializingObjectSizeOfStrategy");
      }
      byte[] serialized = serializer.serialize(object);
      int size = -1;
      if (serialized != null)
      {
        size = serialized.length;
      }
View Full Code Here

  }

  protected IPageStore newPageStore(IDataStore dataStore)
  {
    int inmemoryCacheSize = getStoreSettings().getInmemoryCacheSize();
    ISerializer pageSerializer = application.getFrameworkSettings().getSerializer();
    return new DefaultPageStore(pageSerializer, dataStore, inmemoryCacheSize);
  }
View Full Code Here

    @Override
    public IPageManager get(IPageManagerContext pageManagerContext) {
        IDataStore dataStore = new HttpSessionDataStore(pageManagerContext, evictionStrategy);

        int cacheSize = application.getStoreSettings().getInmemoryCacheSize();
        ISerializer pageSerializer = application.getFrameworkSettings().getSerializer();
        IPageStore pageStore = new DefaultPageStore(pageSerializer, dataStore, cacheSize);
        return new PageStoreManager(application.getName(), pageStore, pageManagerContext);

    }
View Full Code Here

        // disable ModificationWatcher
        application.getResourceSettings().setResourcePollFrequency(null);

        // use plain JDK Object(Input|Output)Stream
        ISerializer serializer = new GaeObjectSerializer(application.getApplicationKey());
        application.getFrameworkSettings().setSerializer(serializer);

        // save older version of pages in the HttpSession
        final IDataStoreEvictionStrategy evictionStrategy;
        if (application instanceof GaeApplication) {
View Full Code Here

  }

  protected IPageStore newPageStore(IDataStore dataStore)
  {
    int inmemoryCacheSize = getStoreSettings().getInmemoryCacheSize();
    ISerializer pageSerializer = application.getFrameworkSettings().getSerializer();
    return new DefaultPageStore(pageSerializer, dataStore, inmemoryCacheSize);
  }
View Full Code Here

      if (object == null)
      {
        return 0;
      }

      ISerializer serializer;
      if (Application.exists())
      {
        serializer = Application.get().getFrameworkSettings().getSerializer();
      }
      else
      {
        serializer = new JavaSerializer("SerializingObjectSizeOfStrategy");
      }
      byte[] serialized = serializer.serialize(object);
      int size = -1;
      if (serialized != null)
      {
        size = serialized.length;
      }
View Full Code Here

TOP

Related Classes of org.apache.wicket.serialize.ISerializer

Copyright © 2018 www.massapicom. 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.