I have a resource (Spring bean) which has some of its fields injected by Spring, for example:
@Repository(value="appDao") public class AppDaoImpl implements AppDao { @PersistenceContext EntityManager entityManager; public Resource() { ... use entityManager ... // doesn't work } } I know that I can't access the injected entityManager in the constructor and should use a @PostConstruct annotation on a different method. But what are the reasons for this?