Thoughts on replacing inheritance of TrSessionImpl with composition/delegation
5 views
Skip to first unread message
Jack Singleton
unread,
Nov 3, 2013, 4:37:58 PM11/3/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tahrir-de...@googlegroups.com
I've done a spike for TopologyMaintenanceSessionImpl, switching from inheritance to composition.
This simplified some of the unit test code, because we can mock methods on TrSession instead of each of the methods that TrSession calls.
I think this will mean we can start changing how TopologyMaintenanceSessionImpl manages dependencies without changing how all session implementations work.