use of org.apereo.cas.memcached.kryo.serial.URLSerializer in project cas by apereo.
the class CloseableKryoFactory method registerNativeJdkComponentsWithKryo.
private void registerNativeJdkComponentsWithKryo(final Kryo kryo) {
kryo.register(Class.class, new DefaultSerializers.ClassSerializer());
kryo.register(ZonedDateTime.class, new ZonedDateTimeSerializer());
kryo.register(ArrayList.class);
kryo.register(HashMap.class);
kryo.register(LinkedHashMap.class);
kryo.register(byte[].class);
kryo.register(LinkedHashSet.class);
kryo.register(ByteBuffer.class);
kryo.register(HashSet.class);
kryo.register(URL.class, new URLSerializer());
kryo.register(URI.class, new URISerializer());
kryo.register(Pattern.class, new RegexSerializer());
kryo.register(UUID.class, new UUIDSerializer());
kryo.register(EnumMap.class, new EnumMapSerializer());
kryo.register(EnumSet.class, new EnumSetSerializer());
}
Aggregations