use of cn.taketoday.context.annotation.BeanAge in project today-infrastructure by TAKETODAY.
the class FactoryMethodComponent method protectedInstance.
@Bean
@BeanAge(1)
protected TestBean protectedInstance(@Qualifier("public") TestBean spouse, @Value("#{privateInstance.age}") String country) {
TestBean tb = new TestBean("protectedInstance", 1);
tb.setSpouse(tb);
tb.setCountry(country);
return tb;
}
use of cn.taketoday.context.annotation.BeanAge in project today-framework by TAKETODAY.
the class FactoryMethodComponent method protectedInstance.
@Bean
@BeanAge(1)
protected TestBean protectedInstance(@Qualifier("public") TestBean spouse, @Value("#{privateInstance.age}") String country) {
TestBean tb = new TestBean("protectedInstance", 1);
tb.setSpouse(tb);
tb.setCountry(country);
return tb;
}