You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The change from PR #39 works as intended and fixes issue #35 (but not #34 since it only dispatches internally). However, since API methods are now used that provide appropriate abstraction, the additional layer of abstraction via mCotDispatcher seems to me somewhat redundant.
I suggest that rewriting the function retransmitCotToLocalhost() to invoke the dispatcher methods directly could reduce some of the complexity without impacting the code structure - and fix issue #34 in one fell swoop.
(the second line dispatches the CoT event externally, fixing issue #34)
I'm reluctant to submit a PR around this change since it should also include a cleanup of the InboundMessageHandler class - a task requiring a level of familiarity with your code that I don't have yet. :) But I hope it helps nonetheless.
The text was updated successfully, but these errors were encountered:
Thanks for letting me know that this solution wasn't complete!
#43 fixes this by using both the internal and external CotDispatchers in InboundMessageHandler.retransmitCotToLocalhost(CotEvent)
I left the mInternalCotDispatcher and mExternalCotDispatcher abstraction in InboundMessageHandler because it allows for the injection of mocks through the constructor for those dependencies if I ever get around to writing testing code for this codebase.
The change from PR #39 works as intended and fixes issue #35 (but not #34 since it only dispatches internally). However, since API methods are now used that provide appropriate abstraction, the additional layer of abstraction via
mCotDispatcher
seems to me somewhat redundant.I suggest that rewriting the function
retransmitCotToLocalhost()
to invoke the dispatcher methods directly could reduce some of the complexity without impacting the code structure - and fix issue #34 in one fell swoop.Here's what worked well for me (in InboundMessageHandler.java ):
(the second line dispatches the CoT event externally, fixing issue #34)
I'm reluctant to submit a PR around this change since it should also include a cleanup of the
InboundMessageHandler
class - a task requiring a level of familiarity with your code that I don't have yet. :) But I hope it helps nonetheless.The text was updated successfully, but these errors were encountered: