@Override protectedvoid initialize(XMLEncoder encoder) {
encoder.setPersistenceDelegate(B.class, new BDelegate());
encoder.setPersistenceDelegate(C.class, new CDelegate());
}
protected Object getObject() {
A a = new A(); return a.newC(a.newB());
}
publicstaticclass A { public B newB() { returnnew B(this);
}
public C newC(B b) { returnnew C(b);
}
}
publicstaticclass B { privatefinal A a;
private B(A a) { this.a = a;
}
public A getA() { returnthis.a;
}
}
publicstaticclass C { privatefinal B b;
private C(B b) { this.b = b;
}
public B getB() { returnthis.b;
}
}
publicstaticclass BDelegate extends DefaultPersistenceDelegate { protected Expression instantiate(Object old, Encoder out) {
B b = (B) old; returnnew Expression(b, b.getA(), "newB", new Object[0]);
}
}
publicstaticclass CDelegate extends DefaultPersistenceDelegate { protected Expression instantiate(Object old, Encoder out) {
C c = (C) old; returnnew Expression(c, c.getB().getA(), "newC", new Object[] { c.getB() });
}
}
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.9Angebot
(Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können 2026-06-10)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.