View Javadoc
1   package org.kuali.common.util.spring.context;
2   
3   import org.springframework.beans.factory.annotation.Autowired;
4   import org.springframework.context.annotation.Bean;
5   import org.springframework.context.annotation.Configuration;
6   
7   @Configuration
8   public class CerealConfig {
9   
10  	@Autowired
11  	Milk milk;
12  
13  	@Bean
14  	public Cereal cereal() {
15  		Cereal c = new Cereal();
16  		c.setName("chocolate cheerios");
17  		c.setPrice(2.50);
18  		return c;
19  	}
20  
21  }