public class RegistrationNotRequiredKryoContextResolver extends Object implements jakarta.ws.rs.ext.ContextResolver<com.esotericsoftware.kryo.Kryo>
KryoFeature#registrationRequired(false) is used.
The default behaviour is demanded to require ContextResolver with
public Kryo getContext(Class> type) {
...
Kryo kryo = new Kryo();
kryo.setRegistrationRequired(true);
kryo.register(The_class_for_which_the_KryoMessageBodyProvider_should_be_allowed);
...
return kryo;
}
| Constructor and Description |
|---|
RegistrationNotRequiredKryoContextResolver() |
public RegistrationNotRequiredKryoContextResolver()
public com.esotericsoftware.kryo.Kryo getContext(Class<?> type)
getContext in interface jakarta.ws.rs.ext.ContextResolver<com.esotericsoftware.kryo.Kryo>Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.