<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    CDI在JavaEE7中占據如此重要的地位!

    從下面的JavaEE7新特性列表中,你會發現CDI是多么的重要,它無處不在!

    到處都標示著“CDI Integration”,本文摘自 這里

     

    EJB 3.2

    Enterprise Java Bean 3.2 (JSR 345)

    •  Enhancing EJB architecture to enable the PaaS model with features such as multi-tenancy
    •  Factorization of container-managed transactions to use other component technologies of the Java EE platform
    •  Enhanced use of annotations to simplify EJB programming model
    •  Alignment and integration with other specifications related to JSRs within the Java EE 7 platform such asCDI , JMS, Bean Validation, etc

    EL 3.0

    Expression Language 3.0 (JSR 341)

    •  Separate expression language context into parsing and evaluation contexts independent of the JSP specification
    •  Introduction of new customizable expression language coercion rules
    •  Reference static methods and members directly in EL expressions without having to define them in Tag Library Descriptor, similar to instance method invocation
    •  Adding equality, string concatenation, and sizeof operators
    •  CDI Integration so that +events+ can be generated before/during/after the expressions are evaluated

    JMS 2.0

    Java Messaging Service 2.0 (JSR 343) The new introduction will be an evolution of the previous version, JSR-914.

    •  Enhanced JMS programming model to make application development easier, cleaning up ambiguities in the present specification
    •  Enhanced integration with CDI for easier and more unified use of API
    •  Make necessary changes to API in allowing any JMS provider to integrate with any Java EE containerinvocation
    •  Make JSR more cloud-friendly, leveraging multi-tenancy and other cloud-related features from the platform

    EL 3.0

    Expression Language 3.0 (JSR 341)

    •  Separate expression language context into parsing and evaluation contexts independent of the JSP specification
    •  Introduction of new customizable expression language coercion rules
    •  Reference static methods and members directly in EL expressions without having to define them in Tag Library Descriptor, similar to instance method invocation
    •  Adding equality, string concatenation, and sizeof operators
    •  CDI Integration so that events can be generated before/during/after the expressions are evaluated

    Servlet 3.1

    Java Servlet 3.2 (JSR 340) Servlet早在JavaEE6就已經無縫集成了 CDI

    •  Optimize Java EE PaaS model, leveraging the cloud for Web applications
    •  Optimizing PaaS model leveraging multi-tenancy. To support this into the Web container, the main areas of optimization will be security, session state, resources and
    •  other multi-tenant awareness requirements for Web applications.
    •  Enhance the asynchronous support of Servlet 3.0 and simplify further in building asynchronous applications
    •  Utilize Java EE concurrency APIs for asynchronous support
    •  Enhance the Servlet 3.0 built-in security features
    •  Optimize the built-in plug-ability support of Servlet 3.0
    •  Focus on providing necessary functionality for building easier-to-use, high-level protocol support for Web Sockets and other protocols that work with HTTP in the Servlet API

    JAX-RS 2.0

    Java API for RESTful Web Services 2.0 (JSR 339)

    •  Define two client APIs, both REST-compatible -- a low-level API using builder pattern and a higher-level API leveraging the low-level APIs
    •  Hypermedia, an important RESTful feature of Web applications, will be easy to create, and it will process links associated with resources in representation either as a header or as a links within the entity peripheral.
    •  Make it possible to validate parameters of forms or query using bean validation and return a meaningful response on failure to validate
    •  Closer integration CDI @Inject

    JSF 2.2

    Java Server Faces 2.2 (JSR 344)

    •  Making configuration options dynamic, eliminate tag handler class even for non-composite JSP components, introduce shorthand URLs for Facelet Tag Libraries, make cc:interface in composite components optional, enhance deployment, integrate with CDI
    •  Component identification and Ajax
    •  Support implementation of Portlet Bridge 2.0
    •  Support for HTML5 features, such as Forms, Heading, Metadata and Section content model, Flow management, Listener for page navigation events, and new components like FileUpload and BackButton

    CDI 1.1

    Context and Dependency Injection 1.1 (JSR 346)

    •  Global ordering of interceptors and decorators,
    •  API for managing built-in context,
    •  Embedded mode to allow startup outside the Java EE container
    •  Declarative control over which packages/classes are scanned in a bean archive
    •  Bean declaration at constructor level
    •  Injection for static members, such as loggers
    •  Send CDI events for Servlet events
    •  Better support for CDI in libraries when used in the Java EE platform

    JPA 2.1

    Java Persistence API 2.1 (JSR 338)

    •  Addition of the javax.persistence.StoredProcedureQuery interface to control stored procedure query execution. >Javax.persistence.EntityManager has added four variants of methods that return a StoredProcedureQuery for executing a stored procedure, including one allowing named stored procedure query. The newly introduced annotation @NamedStoredProcedureQuery can be specified on an entity or mapped class, similar to the @NamedQuery. The parameters IN, OUT and INOUT can be used to manipulate values from the stored procedure.
    •  The javax.persistence.criteria.AbstractQuery interface has been refactored by CriteriaUpdate, CriteriaDelete and CommonAbstractQuery interfaces.
    •  Added new identifiers for persistence query language (JPQL), such as FUNCTION for supporting JPQL built-in functions, TREAT for down casting within path expressions in the FROM and WHERE clauses, and ON for specifying the relationship between the tables.
    •  CDI Integration Listener.The entity listeners can be annotated with @PostConstruct and @PostDestroy for their lifecycle. Also, the usual lifecycle callback methods, such as @PrePersist, @PostPersist, @PreUpdate and @PreRemove can be used for entities.
    •  Added support for unsynchronized persistence context to create container-managed unsynchronized persistence context. For example, @PersistenceContext (synchronization=SynchronizationType.UNSYNCHRONIZED)

    Bean Validation 1.1

    Bean Validation 1.1 (JSR 349)

    •  Integration with other Java EE specs, CDI etc.
    •  APIs to validate parameters and return values of method calls.
    •  Validate parameters and return values on HTTP calls
    •  Ability to translate a group into another group while cascading the validation
    •  APIs to validate parameters and return values of method calls
    •  Apply constraints on group collection
    •  Extend the model to support AND and OR style composition
     

    posted on 2013-05-17 15:40 kuuyee 閱讀(3569) 評論(0)  編輯  收藏 所屬分類: CDI 、JEE

    導航

    <2013年5月>
    2829301234
    567891011
    12131415161718
    19202122232425
    2627282930311
    2345678

    統計

    隨筆分類(139)

    Linux內核

    搜索

    •  

    積分與排名

    • 積分 - 319330
    • 排名 - 177

    最新評論

    閱讀排行榜

    主站蜘蛛池模板: 亚洲精品无码久久久久久久| 亚洲欧洲无码AV电影在线观看| 亚洲白色白色在线播放| 久热免费在线视频| 久久精品国产亚洲av麻| 国产一精品一AV一免费| 亚洲av日韩av无码| 最近2018中文字幕免费视频| 美女18毛片免费视频| 日韩一级在线播放免费观看| 亚洲大码熟女在线观看| 免费国内精品久久久久影院| 美女啪啪网站又黄又免费| 亚洲国产成人久久综合一区77| 久久人午夜亚洲精品无码区| 免费jjzz在线播放国产| 国产精品亚洲专一区二区三区| 亚洲M码 欧洲S码SSS222| 丰满人妻一区二区三区免费视频| 亚洲色自偷自拍另类小说| 无码国产精品一区二区免费模式| 91亚洲国产在人线播放午夜 | 亚洲国产一区视频| 一级一黄在线观看视频免费| 亚洲色欲色欲www在线丝| 四虎国产精品永久免费网址| 亚洲视频一区在线播放| 猫咪社区免费资源在线观看| 粉色视频在线观看www免费| 亚洲自偷自偷在线制服| 91制片厂制作传媒免费版樱花| 亚洲日本乱码一区二区在线二产线 | 亚洲JIZZJIZZ妇女| 国产黄色一级毛片亚洲黄片大全| 全免费a级毛片免费看| 亚洲色大成WWW亚洲女子| 老司机亚洲精品影视www| 亚洲精品视频在线免费| 国产亚洲一卡2卡3卡4卡新区 | 在线亚洲人成电影网站色www| 久久久久免费看成人影片|