FindOwners: Avoid reading project state in PluginConfigFactory

All of the "Project Not Found" exceptions happen when
Checker#findApproval is called from the prolog predicate.
We can get project state from the prolog engine rather than
read it in PluginConfigFactory. This could avoid PNF there.
For other places, we have to read from ProjectCache, which I
think will work.

Also I notice some classes in this plugin could be annotated by
@Singleton, e.g. GetOwners.

Change-Id: I6caf2572c366efa77af5fadacbd68e0052a2fe4a
7 files changed
tree: ba3a70116a60959c23cea2705de9211eb3509112
  1. BUILD
  2. LICENSE
  3. OWNERS
  4. src/