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/

沒有留言:

張貼留言