-
|
Is there a way to serialize only classes that inherit from java.io.Serializable and simply ignore the others, like a filter? The reason for this is that I would like to see what is possible with the eclipse-serializer compared to the standard serializer from the Apache Wicket Framework. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
You can add a filter with the SerializerFoundation<?> foundation = SerializerFoundation.New()
.setTypeEvaluatorPersistable(Serializable.class::isAssignableFrom);
Serializer<byte[]> serializer = Serializer.Bytes(foundation); |
Beta Was this translation helpful? Give feedback.
-
|
Thanks, it works up to the proxy classes. |
Beta Was this translation helpful? Give feedback.
You can add a filter with the
PersistenceTypeEvaluator