This repository has been archived by the owner on Aug 23, 2020. It is now read-only.
Activate Local Snapshots #1172
Merged
GalRogozinski
merged 15 commits into
iotaledger:dev-localsnapshots
from
iotadevelopment:merge_dependencyhandling
Nov 20, 2018
Merged
Activate Local Snapshots #1172
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
6170eb6
Refactor: intermediare commit
dfe0db7
Refactor: refactored the LocalSnapshotManagerImpl
ac8d61b
Refactor: removed unnecessary imports
90e6430
Refactor: refactored the SnapshotProviderImpl
9e16021
Refactor: refactored the SnapshotServiceImpl
da3c141
Refactor: refactored CumulativeWeightCalculator
8e61795
Refactor: refactored EntryPointSelectorImpl
b432398
Refactor: refactored AsyncTransactionPruner
5fc9045
Refactor: refactored DedicatedScheduledExecutorService
0ee30e3
Refactor: refactored remaining classes
f8af243
Refactor: refactored parts of the tests
aa4af3f
Refactor: refactor complete
5be6638
Refactor: fixed issues according to codacy
6a609b5
Update src/main/java/com/iota/iri/service/ledger/impl/LedgerServiceIm…
GalRogozinski 52bf647
Refactor: changed according to gals request
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the
Impls
should be removed.This is because: The
D
in Solid states that the code should depend on abstractions, not concretions.The
Impl
is sort of a feature that help you enforceD
. Everytime you see it you knowD
breaks. Besides it is ugly so it incentivizes you to use the interface :-)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is so we can use all the implementation specific methods like "init", "start" and so on without having to typecast them to their explicit type again. I could have the field be generic and then do
((MilestoneSolidifierImpl) milestoneSolidifier).init(...) but that kind of makes it more complicated imho
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm
Once we will do proper DI we will fix it
For now it is fine