Changed the access modifiers of injection fields.(to package private) #321

Cherry picked from master branch.
Please review #321 , and merge to 1.0.x branch.