[cdi-dev] [JBoss JIRA] (CDI-664) Rename SeContainerInitializer.addInterceptors()/addDecorators()/addAlternatives()/addAlternativeStereotypes() and clarify the purpose
Martin Kouba (JIRA)
issues at jboss.org
Thu Dec 8 03:21:00 EST 2016
Martin Kouba created CDI-664:
--------------------------------
Summary: Rename SeContainerInitializer.addInterceptors()/addDecorators()/addAlternatives()/addAlternativeStereotypes() and clarify the purpose
Key: CDI-664
URL: https://issues.jboss.org/browse/CDI-664
Project: CDI Specification Issues
Issue Type: Clarification
Reporter: Martin Kouba
Assignee: Martin Kouba
Fix For: 2.0 .Final
These methods should not add any class to the set of bean classes for the synthetic bean archive. The purpose is solely to compensate the absence of the {{beans.xml}} descriptor.
The propsal is to rename:
* addInterceptors() -> enableInterceptors()
* addDecorators() -> enableDecorators()
* addAlternatives() -> selectAlternatives()
* addAlternativeStereotypes() -> selectAlternativeStereotypes()
The new names correspond to the spec wording (see for example 5.1.1. Declaring selected alternatives).
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the cdi-dev
mailing list