当前位置:首页 > 开发 > 系统架构 > 架构 > 正文

DeltaSpike、Weld与CDI

发表于: 2014-04-29   作者:sunjing   来源:转载   浏览次数:
摘要: CDI      http://www.cdi-spec.org/ Weld    http://weld.cdi-spec.org/ DeltaSpike   http://deltaspike.apache.org/       CDI (Contexts

CDI      http://www.cdi-spec.org/

Weld    http://weld.cdi-spec.org/

DeltaSpike   http://deltaspike.apache.org/

 

    CDI (Contexts and Dependency Injection)是Java EE 的JCP规范(CDI 1.0 : JSR-299 , CDI 1.1,  CDI 1.2: JSR-346)。灵感来源于JBoss Seam和Google guice,也从一些框架,如Spring,借鉴学习了一些经验。

 

    Weld是CDI的参考实现。

 

DeltaSpike consist of a number of portable CDI extensions that provide useful features for Java application developers. DeltaSpike is currently tested on different CDI implementations like Apache OpenWebBeans and JBoss Weld, and also on different Java EE servers like Apache Tomcat and TomEE, JBoss-AS7, JBoss WildFly8, Oracle GlassFish 3.1+ and 4.x+, IBM Websphere 8.x, Oracle Weblogic Server 12c, Jetty, and others.

 

The core features of DeltaSpike project are packaged under the following different modules. Some of them are mandatory while others are optional

 

Core (required)

Contain the API and util classes of DeltaSpike project

Security (optional)

Intercept and check security

JPA (optional)

JSF (optional)  

Container Control (optional)

Bean Validation (optional)

A module for adding CDI support in Bean Validation.

Servlet (optional)

The DeltaSpike Servlet module provides integration with the Java Servlet API.

Data (optional)

The DeltaSpike Data module provides enhanced JPA experience with declarative queries, reducing boilerplate to a minimum. 

Test-Control (optional)

This module allows to write CDI based tests easily.

Scheduler (optional)

This module provides a simple integration with Quartz v2 (per default) or any other scheduler which supports cron-expressions for job-classes.

DeltaSpike SPI

DeltaSpike Service Provider Interface (SPI).

DeltaSpike、Weld与CDI

  • 0

    开心

    开心

  • 0

    板砖

    板砖

  • 0

    感动

    感动

  • 0

    有用

    有用

  • 0

    疑问

    疑问

  • 0

    难过

    难过

  • 0

    无聊

    无聊

  • 0

    震惊

    震惊

编辑推荐
概述 如果说EJB,JPA是之前JEE(JEE5及JEE5之前)中里程碑式的规范,那么在JEE6,JEE7中CDI可以与之
概述 如果说EJB,JPA是之前JEE(JEE5及JEE5之前)中里程碑式的规范,那么在JEE6,JEE7中CDI可以与之
概述 本文通过一个简单的 CDI Web 应用演示dependency injection, scope, qualifiers 以及EL整合。
一:自定义注解,@Inject,@Named的使用 @Inject和@Named大家都知道.这篇主要是说自定义注解的使用方式
什么是paas PaaS是Platform-as-a-Service的缩写,意思是平台即服务。 把服务器平台作为一种服务提供
引言 由于primefaces在国内使用的并不是太多,因此,国内对jsf做系统、详细的介绍的资料很少,即使
原文:Dependency Injection in Java EE 6 – Part 1 作者:Reza Rahman 出处:http://www.theserve
今天在用web项目整合 HDFS 的时候发生了非常诡异的事情。我将java项目的HDFS功能整合至 web项目的时
http://www.infoq.com/cn/news/2010/11/was_8 目前,符合Java EE 6规范的应用服务器寥寥无几,参考
http://www.infoq.com/cn/news/2010/11/was_8 目前,符合Java EE 6规范的应用服务器寥寥无几,参考
版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号