chrisdutz commented on PR #11885:
URL: https://github.com/apache/iotdb/pull/11885#issuecomment-1913592945

   Hi,
   yeah ... it surely doesn't address all singletons, just the ones I needed 
for my work. Of course adjusting all singletons is the more complete work, but 
I wanted to change as little as possible. 
   
   In general do I think we should completely get rid of any form of static 
variables for anything but constant definitions. 
   
   Currently I would be in strong favor of changing things to compose things 
using constructors, similar to Spring Constructor Injection, but to manually 
weave the components together, so we can generally use IoTDB in any form of 
application, no matter the component framework being used.
   
   However do I know this is a big change and possibly one that could break 
compatibility with extensions built for older versions, so I think we should do 
the "resettable statics" first and focus on a more general refactoring later on.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to