Package com.esotericsoftware.kryo.Kryo

Examples of com.esotericsoftware.kryo.Kryo.DefaultInstantiatorStrategy


        };
        // The default strategy is needed so that HashMap is created via the constructor,
        // the StdInstantiatorStrategy (fallback) is needed for classes without default
        // constructor (e.g. DelegatingHandler).
        final DefaultInstantiatorStrategy instantiatorStrategy = new DefaultInstantiatorStrategy();
        instantiatorStrategy.setFallbackInstantiatorStrategy(new StdInstantiatorStrategy());
        kryo.setInstantiatorStrategy(instantiatorStrategy);
        kryo.register( CGLibProxySerializer.CGLibProxyMarker.class, new CGLibProxySerializer() );
        kryo.register( Arrays.asList( "" ).getClass(), new ArraysAsListSerializer() );
        return kryo;
    }
View Full Code Here

TOP

Related Classes of com.esotericsoftware.kryo.Kryo.DefaultInstantiatorStrategy

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.