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

Backported to 1.0.x from #634 .
Please review #321 and #344 .