Java Reference
In-Depth Information
Managed Beans
Managed Beans , lightweight container-managed objects (POJOs) with minimal require-
ments, support a small set of basic services, such as resource injection, lifecycle callbacks,
and interceptors. Managed Beans represent a generalization of the managed beans speci-
fied by JavaServer Faces technology and can be used anywhere in a Java EE application,
not just in web modules.
The Managed Beans specification is part of the Java EE 6 platform specification (JSR
316).
Managed Beans are new to the Java EE 6 platform. The Java EE 6 platform requires Man-
aged Beans 1.0.
Contexts and Dependency Injection for the Java EE Platform (JSR 299)
Contexts and Dependency Injection (CDI) for the Java EE platform defines a set of con-
textual services, provided by Java EE containers, that make it easy for developers to use
enterprise beans along with JavaServer Faces technology in web applications. Designed
for use with stateful objects, CDI also has many broader uses, allowing developers a great
deal of flexibility to integrate different kinds of components in a loosely coupled but type-
safe way.
CDI is new to the Java EE 6 platform. The Java EE 6 platform requires CDI 1.0.
Dependency Injection for Java (JSR 330)
Dependency Injection for Java defines a standard set of annotations (and one interface)
for use on injectable classes.
In the Java EE platform, CDI provides support for Dependency Injection. Specifically,
you can use DI injection points only in a CDI-enabled application.
Dependency Injection for Java is new to the Java EE 6 platform. The Java EE 6 platform
requires Dependency Injection for Java 1.0.
Bean Validation
The Bean Validation specification defines a metadata model and API for validating data in
JavaBeans components. Instead of distributing validation of data over several layers, such
as the browser and the server side, you can define the validation constraints in one place
and share them across the different layers.
Bean Validation is new to the Java EE 6 platform. The Java EE 6 platform requires Bean
Validation 1.0.
Search WWH ::




Custom Search