Search in sources :

Example 11 with JavaSerializer

use of org.apache.wicket.serialize.java.JavaSerializer in project midpoint by Evolveum.

the class MidPointApplication method initializeDevelopmentSerializers.

private void initializeDevelopmentSerializers() {
    JavaSerializer javaSerializer = new JavaSerializer(getApplicationKey()) {

        @Override
        protected ObjectOutputStream newObjectOutputStream(OutputStream out) throws IOException {
            IObjectChecker checker1 = new MidPointObjectChecker();
            // IObjectChecker checker2 = new NotDetachedModelChecker();
            // IObjectChecker sessionChecker = new SessionChecker();
            IObjectChecker checker3 = new ObjectSerializationChecker();
            return new CheckingObjectOutputStream(out, checker1, checker3);
        }
    };
    getFrameworkSettings().setSerializer(javaSerializer);
}
Also used : JavaSerializer(org.apache.wicket.serialize.java.JavaSerializer)

Aggregations

JavaSerializer (org.apache.wicket.serialize.java.JavaSerializer)11 DefaultPageStore (org.apache.wicket.pageStore.DefaultPageStore)5 IPageManager (org.apache.wicket.page.IPageManager)4 IPageManagerContext (org.apache.wicket.page.IPageManagerContext)4 PageStoreManager (org.apache.wicket.page.PageStoreManager)4 IDataStore (org.apache.wicket.pageStore.IDataStore)4 IPageStore (org.apache.wicket.pageStore.IPageStore)4 Test (org.junit.Test)4 ObjectOutputStream (java.io.ObjectOutputStream)2 OutputStream (java.io.OutputStream)2 DefaultPageManagerProvider (org.apache.wicket.DefaultPageManagerProvider)2 IPageManagerProvider (org.apache.wicket.IPageManagerProvider)2 DefaultButtonImageResource (org.apache.wicket.markup.html.image.resource.DefaultButtonImageResource)2 HttpSessionDataStore (org.apache.wicket.pageStore.memory.HttpSessionDataStore)2 PageNumberEvictionStrategy (org.apache.wicket.pageStore.memory.PageNumberEvictionStrategy)2 WicketTester (org.apache.wicket.util.tester.WicketTester)2 InMemoryPageStore (org.apache.wicket.versioning.InMemoryPageStore)2 Before (org.junit.Before)2 ByteArrayInputStream (java.io.ByteArrayInputStream)1 ObjectInputStream (java.io.ObjectInputStream)1