John D. Ament created CXF-7611:
----------------------------------

             Summary: Define an internal SPI for automatically discovering 
components
                 Key: CXF-7611
                 URL: https://issues.apache.org/jira/browse/CXF-7611
             Project: CXF
          Issue Type: New Feature
          Components: JAX-RS
            Reporter: John D. Ament


Other JAX-RS runtimes provide an internal SPI for registering components to be 
discovered automatically.

For instance, Jersey uses 
[AutoDiscoverable|https://github.com/jersey/jersey/blob/master/core-common/src/main/java/org/glassfish/jersey/internal/spi/AutoDiscoverable.java]
 (this link may change due to ee4j moves)
and Resteasy will look for {{ServiceLoader}} files that are defined as 
{{javax.ws.rs.ext.Providers}} but manually process the entries to load them.

CXF as best as I can tell has no capability like this, and instead relies on 
the DI runtimes to register providers.  This type of feature may make sense to 
have in a future JAX-RS specification update, and I think we should have a 
similar mechanism available so that users can register providers in a DI 
independent way.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to