Refactor: Convert HookArgs to use guava Factory interface
Instead of injecting all of the HookArgs dependencies into the
HookFactory and then explicitly passing them into the HookArgs
constructor, inject the dependencies into HookArgs itself and let
it be created using the guava Factory interface.
This allows to remove several injected members from HookFactory
that were only necessary for creation of HookArgs. Having these
members only in HookArgs, where they are actually used, is cleaner.
3 files changed