But it is not implementing it, Lifecycle is added from @This
Configuration<HWConf> as this is an EntityComposite now.
(Rickards changes). If HWService would implement Lifecycle it would
autmatically get the default Lifecycle mixin
declared on the LC interface.
The separation of the domain interface and the composite interface helps in
this regard after that this bug doesn't
occur anymore.
I did some bugfixes in core and the tests. There were certain cases that were
not handled. Shall I send a diff to the
list for anyone to commit?
Michael
Niclas Hedhman schrieb:
> On Fri, Jun 13, 2008 at 3:23 PM, Michael Hunger <[EMAIL PROTECTED]> wrote:
>
>> public interface HelloWorldConfiguration extends EntityComposite
>
>> public static class HelloWorldMixin
>> implements HelloWorld, Activatable
>> {
>> @This
>> Configuration<HelloWorldConfiguration> config;
>> ....
>> }
>
>> So, because of the EntityComposite that is already implemented by the
>> HWConfiguration interface the Service also must
>> implement all Interfaces or have at least mixins for the interfaces needed
>> by EntityComposite.
>> (The problem here being Lifecycle).
>> org.qi4j.spi.composite.InvalidCompositeException: No implementation found
>> for method public abstract void
>> org.qi4j.entity.Lifecycle.remove() in
>> org.qi4j.service.ConfigurationTest$HelloWorldService
>
> Hmmmm?? Are you sure?
>
> The exception is saying that HelloWorldService implements Lifecycle,
> and is not bitching about the HWConf.
> If it is then there are two problems;
>
> 1. Wrong Exception message.
>
> 2. A bug that the composite would need to expose the Lifecycle
> interface, as the Entity is an internal concern from the client
> perspective.
>
>
> Cheers
> Niclas
>
> _______________________________________________
> qi4j-dev mailing list
> [email protected]
> http://lists.ops4j.org/mailman/listinfo/qi4j-dev
--
Michael Hunger
Independent Consultant
Web: http://www.jexp.de
Email: [EMAIL PROTECTED]
Enthusiastic Evangelist for Better Software Development
Don't stop where you are: http://creating.passionate-developers.org
We support Software Engineering Radio (www.se-radio.net)
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev