OK, let's assume I have an empty interface (for example, for tagging purposes). I then define a mixin for, for example, lifecycling purposes:

@Mixins({MyEmptyInterface.MyLifecycleMixin.class})
interface MyEmptyInterface
{

  public class MyLifecycleMixin implements MyEmptyInterface, Lifecycle
  {
    // Implementation here
  }
}

Then I have an entity, which extends this interface (among other things):

interface MyEntity extends ..., MyEmptyInterface, EntityComposite
{
}

Now, when I create Qi4j app, and have instances of MyEntity, they don't seem to have the MyLifecycleMixin in them. If I modify MyEmptyInterface to include some dummy method ("void foo();"), and consequently implement this method in MyLifecycleMixin, then the Qi4j knows to include MyLifecycleMixin into MyEntity.

Is this a bug or a feature?

I assume this also happens when I want to implement Initializable interface instead of Lifecycle, however I did not test this.





_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to