[ 
http://issues.apache.org/jira/browse/HIVEMIND-132?page=comments#action_12313829 
] 

Howard M. Lewis Ship commented on HIVEMIND-132:
-----------------------------------------------

This would be difficult to to using the current system, which is very loath to 
instantiate even the service interface (if this was not so, then Spring would 
become a required dependency when using hivemind-lib, for example). It also 
adds a lot of ambiguities ... do you mean exact match or best match?  What is a 
best match?

> <set-servive> and interface inheritence
> ---------------------------------------
>
>          Key: HIVEMIND-132
>          URL: http://issues.apache.org/jira/browse/HIVEMIND-132
>      Project: HiveMind
>         Type: Bug
>   Components: framework
>     Versions: 1.1
>  Environment: Windows XP, Hivemind 1.1 beta, JDK 1.4
>     Reporter: Thibault Cuvilleir

>
> Hi !
> => A is not a service interface
> Interface A { ...}
> => B is a Hivemind service interface
> interface B extends A {...}
> => BService is a service-id  declared in the module desriptor. BService 
> implents B
> class BServiceImpl implements B {...}
> => CService has a dependance to B, but wants to use the interface A:
> class public MyServiceImpl  implements C {
>      private A _otherService;
>      public void setOtherService(A service) { ... }
> }
> >>>> Then <set-service service-id="BService" property="otherService> failed.
> <set-service> try to match a setter method with the exact service interface 
> (B) and is unable to find a setter method with one of the extended interface 
> (A).
> Best regards,
> Thibault Cuvillier

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to