吟遊詩人的天空與大地
2013年12月18日
[Java] Guice and Inject
為了使用其他concrete object中的data,以前要用get or將整個object傳入。
而使用inject,兩行直接搞定
可用來實現CDI, IOC(Inversion of Control)
https://code.google.com/p/google-guice/
沒有留言:
張貼留言
較新的文章
較舊的文章
首頁
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言