fix a bug with constructor injection : cannot inject a java bean which is not a public class