JBoss Weld CDI for Java Platform learn CDI concepts and develop modern web applications using JBoss Weld - Finnegan, Ken (Packt Publishing, 2013)
Cover; Copyright; Credits; About the Author; About the Reviewer; www.PacktPub.com; Table of Contents; 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?; Bean types; Qualifiers; Scope; Expression Language (EL); Alternatives; Which classes are beans?; Managed Beans; Session Beans; Producers; Producer methods; Producer fields; Summary; Dependency Injection and Lookup; What is an injection point?; Typesafe resolution; Qualifiers; @Default and @Any; Qualifier members; Alternatives; Resolving Weld deployment errors
Client proxiesUnproxyable bean types; 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 request context lifecycle; The session context lifecycle; The application context lifecycle; The conversation scope; The conversation context lifecycle; Conversation propagation; Conversation timeout; Pseudo scopes; Custom scopes; Summary; Producers; The scope of a producer; Injection into producer methods
Dependent beans for producersCleanup of produced beans; Summary; Interceptors and Decorators; Interceptor bindings; Creating and enabling an interceptor; Advanced interceptors; Interceptor binding types with members; Combining interceptor binding types; Inheritance of interceptor binding types; 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; Members of event qualifiers; Combining event qualifiers; Observing events in different transaction phases; Event-observer bean creation
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; Replacing annotations on a type via an extension; Summary; Book Store - CDI Services; Overview of the application; Adding interceptors for our services; Securing methods with an interceptor; Providing a transaction with an interceptor; Creating CDI services; Summary; Book Store - User Interfaces; REST services; User interface for customers; Administration interface; Summary; Index
This book is a mini tutorial with plenty of code examples and strategies to give you numerous options when building your own applications.""JBoss Weld CDI for Java Platform"" is written for developers who are new to dependency injection. A rudimentary knowledge of Java is required