[
https://issues.apache.org/jira/browse/CXF-4199?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13830777#comment-13830777
]
Andriy Redko commented on CXF-4199:
-----------------------------------
Hi Sergey,
Quick update: I have got Spring auto-discovery working just fine, couple of
very rough ideas (new property autoDiscovery on a factory bean):
{noformat}
JAXRSServerFactoryBean factory = RuntimeDelegate.getInstance().createEndpoint(
... );
factory.setAutoDiscovery( true );
factory.setServiceBeans( ... );
return factory.create();
{noformat}
Briefly behind the scene:
- (in this case SpringBus) has new extension added: AutoDiscovery
- on factory's create() actually the configured bus instance is being asked
for AutoDiscovery extension and, if found, populate providers from it
Please correct me if I am on a wrong way (didn't attach patch yet, but have it
working just fine).
Thanks.
Andriy.
> Support class-scanning for discovering JAX-RS providers
> --------------------------------------------------------
>
> Key: CXF-4199
> URL: https://issues.apache.org/jira/browse/CXF-4199
> Project: CXF
> Issue Type: Improvement
> Components: JAX-RS
> Reporter: Sergey Beryozkin
>
> With the search extensions module containing a provider the time has come to
> support the optional class-scanning. Will help in cases when the providers
> are simple and no extra configuration is expected. Post 2.6 though
--
This message was sent by Atlassian JIRA
(v6.1#6144)