Tell Guice which dependency you want.
告诉Guice您需要哪个依赖项。
At that time they can safely become Guice managed.
到那个时候,它们就能安全地变为由Guice管理的了。
Finally, Sitebricks is built directly on top of Guice.
最后,我想说的是Sitebricks直接构建在Guice之上。
If you're familiar with Guice, the code above should look familiar.
如果您熟悉Guice,上述代码应该会看起来很眼熟。
The @Inject tag takes on meaning only when you ask Guice to construct your class.
@Inject标记只在您要求Guice构建类时才有意义。
The @Inject tag takes on meaning only when you ask Guice to construct your class.
@Inject标记只在您要求Guice构建类时才有意义。
应用推荐