Web Beans 1.0.0 Alpha 2 发布!

Web Beans 1.0.0 Alpha 2 ,已经实现了jsr-299中80%的功能。值得注意的是,jsr-299已经更名为Java Contexts and Dependency Injection。JBoss 保留了Web Beans作为项目名称。

具体参见:

http://in.relation.to/Bloggers/WebBeans100ALPHA2Released

这次发布版本带的新特性:

  • Injection of new instances via @New
  • Support for passivating scope
  • Updates to metadata inheritance rules
  • specialization
  • realization
  • injection point metadata
  • injection via @Resource, @EJB and @PersistenceContext into simple beans

之前的alpha 1已经支持以下特性。

  • support for simple beans
  • support for enterprise beans and enterprise bean remove methods
  • typesafe and name based resolution
  • producer methods
  • producer fields
  • the dependent context
  • support for JBoss 5
  • the servlet contexts: application, session and request
  • field and constructor injection
  • @Initializer methods
  • Event support (firing and observing events)
  • definition of observer methods through annotations
  • injection of event producers
  • conditional events
  • stereotypes
  • support for lifecycle callbacks (@PostConstruct and @PostDestroy)
  • an SPI to integrate with other containers

There is also preview support for:

  • transactional observers
  • dynamic lookup through @Obtains


来自: http://in.relation.to/Bloggers/WebBeans100ALPHA2Released

原文地址:https://www.cnblogs.com/lanzhi/p/6469618.html