[cdi-dev] [JBoss JIRA] (CDI-396) Miss leading JavaDoc for Interceptor SPI
Aslak Knutsen (JIRA)
jira-events at lists.jboss.org
Mon Aug 19 11:39:26 EDT 2013
Aslak Knutsen created CDI-396:
---------------------------------
Summary: Miss leading JavaDoc for Interceptor SPI
Key: CDI-396
URL: https://issues.jboss.org/browse/CDI-396
Project: CDI Specification Issues
Issue Type: Bug
Components: Javadoc and API
Affects Versions: 1.0
Reporter: Aslak Knutsen
class javax.enterprise.inject.spi.Interceptor has the following JavaDoc:
{code}
Represents an enabled {@linkplain javax.interceptor interceptor}.
{code}
The JavaDoc and http://docs.jboss.org/cdi/spec/1.0/html/spi.html#abd SPI Doc seems to imply that you can do the following in a Extension:
{code}
public void enableInterceptor(@Observes AfterBeanDiscovery beans) {
beans.addBean(MyInterceptorType())
}
{code}
While you can add them, they are still not _enabled_, which can only be done via beans.xml in CDI 1.0.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the cdi-dev
mailing list