org.apache.cxf.dosgi.dsw.ClassUtils#getInterfaceClass() method should search 
through super class interfaces too
---------------------------------------------------------------------------------------------------------------

                 Key: CXF-2337
                 URL: https://issues.apache.org/jira/browse/CXF-2337
             Project: CXF
          Issue Type: Bug
          Components: Distributed-OSGi
    Affects Versions: 2.2.1
         Environment: any
            Reporter: Sergey
            Priority: Minor


ServiceHookUtils won't publish OSGi service if service interface implemented by 
super class. For example, java.util.ArrayList instance can be published as 
java.util.List service but not as java.util.Collections: 

    <osgi:service interface="java.util.Collection">
        <osgi:service-properties>
            <entry key="osgi.remote.interfaces" value="*"/>
            <entry key="osgi.remote.configuration.type" value="pojo"/>
            <entry key="osgi.remote.configuration.pojo.httpservice.context" 
value="/collection"/>
        </osgi:service-properties>
        <bean class="java.util.ArrayList"/>
    </osgi:service>

    <osgi:service interface="java.util.List">
        <osgi:service-properties>
            <entry key="osgi.remote.interfaces" value="*"/>
            <entry key="osgi.remote.configuration.type" value="pojo"/>
            <entry key="osgi.remote.configuration.pojo.httpservice.context" 
value="/list"/>
        </osgi:service-properties>
        <bean class="java.util.ArrayList"/>
    </osgi:service>



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to