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);
}
Aggregations