Context and Dependency Injection (OMEGA-376)

Duration: 2 days

Course Content

Module 1 - Introduction to CDI

  • What is CDI?
  • Correlation between CDI and Dependency Injection
  • Basic Design and Architecture
  • CDI implementations (Weld, OpenWebBeans, etc.)
  • Module 2 - Use and integration

  • Use within Java SE and Java EE environment
  • Integration with application servers and web containers
  • Module 3 - Basic Concepts

  • Beans and EL-name
  • Injection and Producers
  • Qualifiers
  • Scopes
  • Interceptors and Decorators
  • Alternatives and Stereotypes
  • Event mechanism
  • Module 4 - Configuration and Deployment

  • Configuration via beans.xml
  • Packaging and deployment of individual applications and components
  • Module 5 - Java EE 6

  • Comparable mechanisms and annotations (JSF managed beans: @ManagedBean)
  • Optimum interaction between CDI and the rest of Java EE 6 technologies (JPA, EJB, JSF, Web Services)
  • Best Practices
  • Module 6 - Expansion options

  • Different entry points for extensions
  • Special interfaces
  • Life cycle within the container and special events
  • Use of the Bean manager
  • Providing context for their own implementations