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

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

    震惊

    震惊

版权所有 IT知识库 CopyRight © 2009-2015 IT知识库 IT610.com , All Rights Reserved. 京ICP备09083238号