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.

Change-Id: I56fa559d37c625c5c2c7e36e3ec58d3dd5f19462
3 files changed
tree: ca5dcf552bb982e3810335bd8371d61d331ac229
  1. src/
  2. .gitignore
  3. BUILD
  4. LICENSE