Java Platform, Enterprise Edition (Java EE) 8
The Java EE Tutorial
This chapter describes Contexts and Dependency Injection for Java EE (CDI) which is one of several Java EE features that help to knit together the web tier and the transactional tier of the Java EE platform.
The following topics are addressed here:
Using the @PostConstruct and @PreDestroy Annotations with CDI Managed Bean Classes