Using the STS Eclipse plugin for a Spring Template project for a Hibernate utility (using Spring 3.1), there is some code generated that I believe is injecting a bean vs. a value:
@Configuration
public class HibernateConfiguration {
@Value("#{dataSource}")
private DataSource dataSource;
And the XML file contains:
<
jdbc:embedded-database id="dataSource" type="H2"/>
I've seen @Value used to inject properties, but is this is injecting the bean itself? And if so, why not use @Autowired or @Inject?
Thanks in advance.
Les