You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Darius Cooper <da...@gmail.com> on 2019/02/03 00:36:43 UTC

Custom : SwaggerRestApiProcessorFactory

If there a way to register a custom  RestApiProcessorFactory  that will
take the place of  SwaggerRestApiProcessorFactory ?

(Basically, I'm trying to figure out a work-around for
https://issues.apache.org/jira/browse/CAMEL-13126, so I can version 2.23.x)

thanks

Re: Custom : SwaggerRestApiProcessorFactory

Posted by Darius Cooper <da...@gmail.com>.
Thank you. This page of the documentation:
http://camel.apache.org/registry.html
says... " if you are using Spring, it uses the ApplicationContext as the
registry "

I'm interpreting that to mean that -- since I use Spring -- creating a
class that implements   RestApiProcessorFactory  as a Spring bean will
work... i.e. it will be used instead of the default factory.

regards
Darius



On Sun, Feb 3, 2019 at 2:26 PM Zoran Regvart <zo...@regvart.com> wrote:

> Hi Darius,
> I think the easiest way would be to put your own implementation of
> RestApiProcessorFactory in the registry, you can take look at the code
> that chooses what implementation to use at[1],
>
> zoran
>
> [1]
> https://github.com/apache/camel/blob/158cb2242fe1021a0812b5a8977e8a71f72f8842/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestApiEndpoint.java#L137-L141
>
> On Sun, Feb 3, 2019 at 1:37 AM Darius Cooper <da...@gmail.com>
> wrote:
> >
> > If there a way to register a custom  RestApiProcessorFactory  that will
> > take the place of  SwaggerRestApiProcessorFactory ?
> >
> > (Basically, I'm trying to figure out a work-around for
> > https://issues.apache.org/jira/browse/CAMEL-13126, so I can version
> 2.23.x)
> >
> > thanks
>
>
>
> --
> Zoran Regvart
>

Re: Custom : SwaggerRestApiProcessorFactory

Posted by Zoran Regvart <zo...@regvart.com>.
Hi Darius,
I think the easiest way would be to put your own implementation of
RestApiProcessorFactory in the registry, you can take look at the code
that chooses what implementation to use at[1],

zoran

[1] https://github.com/apache/camel/blob/158cb2242fe1021a0812b5a8977e8a71f72f8842/components/camel-rest/src/main/java/org/apache/camel/component/rest/RestApiEndpoint.java#L137-L141

On Sun, Feb 3, 2019 at 1:37 AM Darius Cooper <da...@gmail.com> wrote:
>
> If there a way to register a custom  RestApiProcessorFactory  that will
> take the place of  SwaggerRestApiProcessorFactory ?
>
> (Basically, I'm trying to figure out a work-around for
> https://issues.apache.org/jira/browse/CAMEL-13126, so I can version 2.23.x)
>
> thanks



-- 
Zoran Regvart