[cdi-dev] [JBoss JIRA] (CDI-453) Support for external interceptor configuration

John Ament (JIRA) issues at jboss.org
Fri Aug 22 07:21:59 EDT 2014


John Ament created CDI-453:
------------------------------

             Summary: Support for external interceptor configuration
                 Key: CDI-453
                 URL: https://issues.jboss.org/browse/CDI-453
             Project: CDI Specification Issues
          Issue Type: Feature Request
          Components: Interceptors, Java EE integration, Java SE Integration
    Affects Versions: 1.2.Final
            Reporter: John Ament
            Priority: Minor


Currently, there is no way to flag that an interceptor should be globally enabled/disabled within an archive/application.

Say that I have a common JAR with some interceptor annotations on various beans within it.  This JAR has two targetted runtimes, one in a servlet/app server runtime where in one interceptor should be enabled and another disabled.  This same JAR is also used within a standalone (SE) batch program where the first interceptor is off and the second is on.

In this case, I need a way to specify that an interceptor is on, without changing the deployed bean archive.  I can currently alleviate this through maven shading, but would prefer not to since it tightly couples the archive to the way consumers use it.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the cdi-dev mailing list