Comparing current revision with historical revision 0.
From line 0 changed to lines 0 to 14:
Work in progress list of enhancements to for the CDI 1.0 maintenance release.
Work in progress list of enhancements to for the CDI 1.0 maintenance release and CDI 1.1.
++ Clarify lifecycle of resources
The spec is underdefined in section 7.3.6. Various clarifications are needed, including that:
= the instance of |EntityManager| associated with a resource declaration is the same instance that would be injected using |@PersistenceContext|, i.e. the JPA transaction-scoped container-managed persistence context reference, = stateful EJB references are not automatically destroyed by the container (the app must call the |@Remove| method explicitly), and = EJB and web service references are truly |@Dependent| scoped (instance per injection)
We should remove this sentence: "When the |destroy()| method is called, the container discards this internal reference and performs any cleanup required of state associated with the client or transaction."
++ |@DataSourceDefinition| and |@Alternative|
EE6 introduced the |@DataSourceDefinition| annotation without telling anyone. We should say that if it is used on a class annotated |@Alternative|, then it is only activated if the alternative is enabled.