libaurum: Applying strategy pattern for OCP 22/304922/2
authorWoochan Lee <wc0917.lee@samsung.com>
Thu, 25 Jan 2024 12:22:35 +0000 (21:22 +0900)
committerwoochan lee <wc0917.lee@samsung.com>
Fri, 26 Jan 2024 06:54:02 +0000 (06:54 +0000)
commit1f866ca9b731cbdb95c8d29798180723707f9c9f
tree345a7504395cad71f91c67a2ad2cf2a719fecb9d
parent5b9a27d596d3284357650aff1ed5df17e09d4e39
libaurum: Applying strategy pattern for OCP

Existing code was violating the SOLID principle OCP by being closed for additional events.

To solve this problem, the strategy pattern was applied so that even if new events were added,
the existing business logic remained unchanged and the structure was improved so that new classes could be added.

Change-Id: I386ef353d9a0427dc8e32a89fb1e386a30bafc76
libaurum/inc/Accessibility/AccessibleNode.h
libaurum/inc/Accessibility/AccessibleWatcher.h
libaurum/inc/Accessibility/IEventConsumer.h
libaurum/inc/Accessibility/IEventSource.h
libaurum/src/Accessibility/AccessibleNode.cc
libaurum/src/Accessibility/AccessibleWatcher.cc
libaurum/src/Impl/Accessibility/AtspiAccessibleWatcher.cc