| 1 |
:numbered!: |
| 2 |
["preface",sectnum="0"] |
| 3 |
|
| 4 |
== Preface |
| 5 |
|
| 6 |
=== Evaluation license |
| 7 |
|
| 8 |
include::license-${license}.asciidoc[] |
| 9 |
|
| 10 |
=== Foreword |
| 11 |
|
| 12 |
Contexts and Dependency Injection 1.1 (JSR-346) is an update to Contexts and Dependency Injection 1.0 (JSR-299). A full changelog can be found in the link:$$https://issues.jboss.org/sr/jira.issueviews:searchrequest-printable/12314424/SearchRequest-12314424.html?tempMax=1000$$[issue tracker]. |
| 13 |
|
| 14 |
=== Major changes |
| 15 |
|
| 16 |
These major changes have been introduced for CDI 1.1: |
| 17 |
|
| 18 |
* Add global enablement of interceptors (see the Java Interceptors Specification 1.2), global enablement of decorators (see <<enabled_decorators_priority>>) and alternatives (see <<unsatisfied_and_ambig_dependencies>>) using the +@Priority+ annotation |
| 19 |
* Add support for +@AroundConstruct+ lifecycle callback for constructors (see the Java Interceptors Specification 1.2) |
| 20 |
* Allow binding interceptors to constructors |
| 21 |
* Moved interceptor binding to interceptors spec, allowing for reuse by other specifications |
| 22 |
* Support decorators on built in beans (see <<decorators>>) |
| 23 |
* Add +EventMetadata+ (see <<event_metadata>>) to allow inspection of event metadata |
| 24 |
* Add +@Vetoed+ annotation allowing easy programmatic disablement of classes (see <<what_classes_are_beans>> |
| 25 |
* Many improvements for passivation capable beans, including +@TransientReference+ allowing instances to be retained only for use within the invoked method or constructor (see <<passivation_capable_injection_points>> and <<passivating_scope>>) |
| 26 |
* Add scope activation and destruction callback events (see <<builtin_contexts>>) |
| 27 |
* Add +AlterableContext+ allowing bean instances to be explicitly destroyed (see <<context>>) |
| 28 |
* Add automatic enablement of CDI for beans with a scope annotation, and EJBs, in Java EE (see <<bean_archive>>) |
| 29 |
* Add class exclusion filters to +beans.xml+ to prevent scanning of classes and packages (see <<exclude_filters>>) |
| 30 |
* Add +Unmanaged+ allowing easy access to non-contextual instances of beans (see <<bm_obtain_unmanaged_instance>>) |
| 31 |
* Add +CDI+ allowing easy access to the current CDI container (see <<provider>>) |
| 32 |
* Add +AfterTypeDiscovery+ event, allowing extensions to register additional types after type discovery (see <<atd>>) |
| 33 |
* Add +@WithAnnotations+ as a way of improving extension loading performance (see <<pat>>) |
| 34 |
* Many minor improvements to portable extensions (see <<spi>>) |
| 35 |
|
| 36 |
:numbered: |
| 37 |
|