add inject for adapter
Merge pull request #12 from frankswu/master

 add inject for adapter