gitbitex / gitbitex-new

an open source cryptocurrency exchange
Apache License 2.0
237 stars 90 forks source link

The engineListeners, where and how are they used? #25

Closed edugrip closed 6 months ago

edugrip commented 1 year ago

Was trying to understand the code ( I am not much experienced in concurrency). in Bootstrap.java how are the engineListeners being used? we are creating a placeholder for them, but we are not assigning anything to those variables, example private final ModifiedObjectWriter modifiedObjectWriter; private final EngineSnapshotTaker engineSnapshotTaker; private final OrderBookSnapshotTaker orderBookSnapshotTaker; private final List engineListeners; Top three classes are clearly not being used, engineListener is being use but it appears to be an empty List. Please guide.

greensheng commented 1 year ago

These objects are injected through spring ioc see:https://www.studytonight.com/spring-framework/spring-configuration-using-java-no-xml