Menu

#19 Allow Listeners to be applied only to certain associations

open
nobody
5
2012-12-13
2010-01-11
Anonymous
No

Listeners should always be applied to all parent nodes but in some cases may need to be applied to only certain associated sub nodes (ie only version sub node or only rendition sub nodes).

Solution: Add an injectible string to AbstractMigrationSource and AbstractMigrationTarget which is a regular expression and corresponds to the association types to which Listeners will be applied. Defaults to all association types.

If one pattern can not be used across all Listeners, the default value should be used and the logic limiting which associations the Listener is applied to should be included in the Listeners themselves.

Discussion

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.