Perfect! Thank you. Note to others, I made a mistake with the order of the filters. It should be:\
binder.bindList(Constants.SERVER_DOMAIN_FILTERS_LIST) // .add(new AuditableFilter(new MyAuditableProcessor())) .add(new ChangeSetFilter()); Now you can use: ChangeSetFilter.preCommitChangeSet(); to get the change set. On Sun, Mar 9, 2014 at 7:14 PM, Andrus Adamchik <and...@objectstyle.org>wrote: > Done. > > On Mar 9, 2014, at 8:59 PM, Andrus Adamchik <and...@objectstyle.org> > wrote: > > > Hi Mark, > > > > You are absolutely right. EntityResolver should be initialized inside > ‘init’. IIRC the constructor preceded the full definition of the > DataChannelFilter API, so this was overlooked. And in my own code I add > filters when I already have a hold of CayenneRuntime (e.g. [1]), so this > didn’t come up. > > > > Let me actually make this change on trunk for 3.2. > > > > Andrus > > > > > > [1] > https://github.com/andrus/wowodc13/blob/master/editor/src/main/java/demo/editor/services/cayenne/EditorCayenneService.java > > > > > > On Mar 7, 2014, at 12:52 PM, Mark Stobbe <markstobb...@gmail.com> wrote: > > > >> Hi all, > >> > >> The AuditableFilter constructor required an entityResolver to be passed. > >> However, when I am initializing the module there is no way to grab this > >> entityResolver just yet. > >> > >> After careful inspection I noticed that it is not needed during > >> construction, but only later. Could anyone tell me why the > entityResolver > >> is not set in the init(DataChannel) method of the AuditableFilter, such > >> that you can actually use: > >> > >> binder.bindList(Constants.SERVER_DOMAIN_FILTERS_LIST) // > >> .add(new ChangeSetFilter()) // > >> .add(new AuditableFilter(new MyAuditableProcessor())); > >> > >> in the module.configure(Binder) method. > >> > >> Mark > > > > > >