aries-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From LongkerDandy <longkerda...@gmail.com>
Subject Re: BluePrint service with abstract class
Date Tue, 28 Sep 2010 14:17:27 GMT
Nevermind, I should ref to javax.servlet.Servlet

On Tue, Sep 28, 2010 at 10:11 PM, LongkerDandy <longkerdandy@gmail.com>wrote:

> I'm try to export a http service like this:
>     <bean id="webconsole"
> class="org.chii2.medialibrary.web.WebConsoleServlet">
>     </bean>
>
>     <service ref="webconsole" interface="javax.servlet.http.HttpServlet">
>         <service-properties>
>             <entry key="alias" value="/medialibrary" />
>         </service-properties>
>     </service>
> But it doesn't seems to work with Felix HTTP(Whiteboard) Service.
> If I use activator instead, it will work then.
> Do I miss something?
>
> Regards
> LongkerDandy
>
>
> On Tue, Sep 28, 2010 at 5:07 PM, Timothy Ward <timothyjward@apache.org>wrote:
>
>>
>> Hi,
>>
>>
>>
>> That is absolutely fine. The "interface" attribute of the service and
>> reference elements does not refer to a Java interface, but to API
>> interface. If the abstract class is your API then that is what you
>> should export.
>>
>>
>>
>> Regards,
>>
>>
>>
>> Tim
>>
>> ________________________________
>> > Date: Tue, 28 Sep 2010 16:48:58 +0800
>> > Subject: BluePrint service with abstract class
>> > From: longkerdandy@gmail.com
>> > To: aries-user@incubator.apache.org
>> >
>> > Hi
>> >
>> > I know I can export a service with a implemented interface.
>> > Can I export a service from a extending abstract class?
>> >
>> > Thanks
>> > LongkerDandy
>>
>>
>
>

Mime
View raw message