Commit c16a901
authored
Service lookup should use interface (#757)
* Resolve service using interface and initialize just once.
The ServiceManager basically maps interface types to implementations
based off of the plugin.xml. Make sure to retrieve the implementations
using the interface type and not the implementation type.
I'm also moving the initialization to the constructor since the client
type should never change at runtime.
* remove redundant import
* added constructor javdoc1 parent e6721c4 commit c16a901
File tree
1 file changed
+9
-5
lines changed- google-account-plugin/src/com/google/cloud/tools/intellij/stats
1 file changed
+9
-5
lines changedLines changed: 9 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
54 | 55 | | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
55 | 60 | | |
56 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
57 | 64 | | |
58 | 65 | | |
59 | 66 | | |
| |||
80 | 87 | | |
81 | 88 | | |
82 | 89 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
| |||
0 commit comments