From: Erik Brakkee Date: Sun, 31 Jul 2011 20:06:07 +0000 (+0200) Subject: persistent ids some thoughts X-Git-Tag: PAX_EXAM_MOCKITO_ISSUE~25 X-Git-Url: http://wamblee.org/gitweb/?a=commitdiff_plain;h=0db97b9f39c69528900f915dd2bb463c27debe39;p=xmlrouter persistent ids some thoughts --- diff --git a/persistentids.txt b/persistentids.txt new file mode 100644 index 0000000..dc526d4 --- /dev/null +++ b/persistentids.txt @@ -0,0 +1,15 @@ + +document types, filters, and transformations should define their own persistent ids. + +Refactoring: +* Id should become a String type. +* Document type, filter, and transoformation should extend Identifiable interface which defines Id getId(); +* Id should be used in the config class to create the actual id. Id should no longer be returned. +* deal with duplicate ids (runtime exception). +* unique ids at the xmlrouter level based on RouterConfig id. + + +* add new interface with method updateConfig(RouterConfig) by which a service updates it's own part of the router config. +* add copying of the RouterConfig. +* efficiently check for modifications based on the id. +