Skip to Content
0
Former Member
Apr 30, 2016 at 12:20 AM

Replace AbstractItemModel implementation

88 Views

I have written an AbstractItemModel implementation which turns each class extending ItemModel into a Clojure map. This allows for easier interop such as getting and setting model properties using associative semantics.

To integrate it I simply replace the source file hybris/binplatform/ext/servicelayer/src/de/hybris/platform/servicelayer/model/AbstractItemModel.java.

However, is there a more idiomatic way of doing this than modifying core platform code, such as adding my implementation as a custom class which extends AbstractItemModel and then changing some XML configuration somewhere, as in a Spring bean definition?