![]() The first chapter continues its introduction to CDI beans by quoting the CDI specification of the characteristics required of a CDI bean and then focuses on each characteristic ( bean types, qualifiers, scope, interceptor bindings, bean implementation, and optional bean expression language ). ![]() There is a typo here as the text reads, "It is also possible for a bean to be proxied by the container if it does not have a constructor with any parameters," but I think the text should read, "It is also possible for a bean to be proxied by the container if it does not have a constructor without parameters" or "It is also possible for a bean to be proxied by the container if it does not have a constructor no parameters."Ĭhapter 1 of JBoss Weld CDI for Java Platform introduces several other annotations besides these include and The chapter includes coverage of the beans.xml file and discusses where it should be placed and what it should contain. Finnigan explains that a CDI bean generally "needs a non-private constructor with no parameters" to be "proxied by the container" before discussing use of the annotation for classes without a no-argument public constructor. The initial chapter goes on to provide a definition of a CDI bean. There are, of course, many more types of "beans" in Java such as JMX Managed Beans ( MBeans and MXBeans) and product-specific beans like Spring Framework's beans. The opening chapter of JBoss Weld CDI for Java Platform provides a brief history of Java "beans" that includes mention of early JavaBeans, Enterprise JavaBeans, and JSF Managed Beans. The Preface of JBoss Weld CDI for Java Platform explains that the book is written for "anyone wanting to understand what CDI 1.0 is and how it can be used to benefit an application's architecture." This Preface also states that the latest version of Weld 1.x is required along with Maven and a "favorite runtime container" (out of JBoss AS7, GlassFish, and Tomcat). This post is my review of Packt Publishing's JBoss Weld CDI for Java Platform by Ken Finnigan. ![]() Weld is the reference implementation of Java Specification Request 299 ("Contexts and Dependency Injection for the Java EE platform") and is not limited to use with JBoss Application Server. JBoss Weld CDI for Java Platform is a relatively short book (approximately 100 "main" pages) that introduces JBoss Weld, which it describes as "the open source reference implementation" of Java Contexts and Dependency Injection. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |