IntelliJ complains about OSGi reference attribute

I have a link OSGiin my spring-context.xmlcofiguration file . When I indicate:

<osgi:reference id="cxfInboundLoggingInterceptor" interface="com.groupgti.esb.cxf.interceptors.MessageLoggerInbound" />

IntelliJHe says: Attribute id is not allowed here. My prefix OSGipoints to this diagram:xmlns:osgi="http://www.springframework.org/schema/osgi"

And the layout of the circuit:

http://www.springframework.org/schema/osgi                  http://www.springframework.org/schema/osgi/spring-osgi.xsd

From the Spring OSGi documentation :

The element is <osgi:reference>used to determine the local bean that acts as a proxy for the OSGi service (or set of services). The only attributes required are id (which defines the name of the local bean) and interface (which defines the full name of the interface that the target service is registered in the section).

So, I see that the identifier is required, but why then IntelliJcomplains about it?

+5
source
3

, osgi xsd

<xsd:import namespace="http://www.springframework.org/schema/beans"/>
<xsd:import namespace="http://www.springframework.org/schema/tool"/>

. , , .

, , bugreport IntelliJ http://youtrack.jetbrains.com/issues/IDEA.

0

Perhaps you need to define the id: xml: id attribute?

0
source

All Articles