PacktLib: JBoss Weld CDI for Java Platform

JBoss Weld CDI for Java Platform

Credits

About the Author

About the Reviewer

www.PacktPub.com

Preface

What is a Bean?

The history of beans

Definition of a bean

Is my class a bean?

What does it mean to be a bean?

Which classes are beans?

Summary

Dependency Injection and Lookup

What is an injection point?

Qualifiers

Alternatives

Resolving Weld deployment errors

Client proxies

Programmatic lookup of contextual instances

Injection point metadata

Summary

Deploying JBoss Weld

JBoss Weld distribution

JBoss AS

Glassfish

Apache Tomcat

Summary

Scopes and Contexts

Scope types

Built-in scopes

The conversation scope

Pseudo scopes

Custom scopes

Summary

Producers

The scope of a producer

Injection into producer methods

Dependent beans for producers

Cleanup of produced beans

Summary

Interceptors and Decorators

Interceptor bindings

Creating and enabling an interceptor

Advanced interceptors

What is a decorator delegate?

Enabling a decorator

Summary

Events

What is a payload?

How do I listen for an event?

How do I fire an event?

Event qualifiers

Observing events in different transaction phases

Event-observer bean creation

Summary

Writing a Portable Extension

What is a portable extension?

What is the CDI container lifecycle?

BeanManager

Injection into non-container managed instances

Registering a bean

Summary

Book Store – CDI Services

Overview of the application

Adding interceptors for our services

Creating CDI services

Summary

Book Store – User Interfaces

REST services

User interface for customers

Administration interface

Summary

Index