I have an OSGi reference in my spring-context.xml cofiguration file. When I specify:
<osgi:reference id="cxfInboundLoggingInterceptor" interface="com.groupgti.esb.cxf.interceptors.MessageLoggerInbound" /> IntelliJ says that: Attribute id is not allowed here. My osgi prefix is pointing to this schema: xmlns:osgi="http://www.springframework.org/schema/osgi"
And schema location:
http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd From Spring OSGi documentation:
The
<osgi:reference>element is used to define a local bean that acts as a proxy to an OSGi service (or set of services). The only required attributes are id (which defines the name of the local bean) and interface (which defines the fully qualified name of the interface that the target service is registered under).
So I see that id is required, but why then IntelliJ is complaining about it?