【Java开源代码栏目提醒】:网学会员鉴于大家对Java开源代码十分关注,论文会员在此为大家搜集整理了“ConstructInjectionBean.java”一文,供大家参考学习
package cn.hxex.springcore.injection;
public class ConstructInjectionBean {
private AnotherBean anotherBean;
private YetAnotherBean yetAnotherBean;
private int i;
public ConstructInjectionBean( AnotherBean anotherBean, YetAnotherBean yetAnotherBean, int i) {
this.anotherBean = anotherBean;
this.yetAnotherBean = yetAnotherBean;
this.i = i;
}
public void display() {
System.out.println( "ConstructInjectionBean:" );
System.out.println( this.anotherBean );
System.out.println( this.yetAnotherBean );
System.out.println( i );
}
}