Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make Intellij automatically parse custom beans?

I'm working on a Java/Camel application. I've configured camel through XML files which leads to a

<camelContext id="CamelContext" xmlns="http://camel.apache.org/schema/spring">
    <proxy id="someProcessor"
           serviceInterface="some.Processor"
           serviceUrl="direct:processMessage"/>
</camelContext>

Intellij always gives me a warning that the custom bean is not yet parsed. I don't want to agree on that for every edit I make in the CamelContext. E.g (changed the proxy id):

<camelContext id="CamelContext" xmlns="http://camel.apache.org/schema/spring">
    <proxy id="someProcessor1"
           serviceInterface="some.Processor"
           serviceUrl="direct:processMessage"/>
</camelContext>

(BTW, if I reverse the edit, the bean is considered parsed again.)

Is there a way to automatically parse custom beans?

like image 571
Timo Avatar asked Nov 01 '22 19:11

Timo


1 Answers

If you add a Spring Facet and the Spring config file including the camelContext is under the Spring Application Context then there shouldn't be a problem.

like image 167
dimitrisli Avatar answered Nov 12 '22 16:11

dimitrisli