Hi,

In line with Tonis question about generic and services, I had a quick look at generics and state. Examples:
    public interface Friend<T>
    {
        @Optional
        Association<T> friend();
    }

    public interface Team<T>
    {
        ManyAssociation<T> members();
    }
---
In the above the types of the friend and team members is not given until a composite actually extends them, like so:
    public interface Person
        extends Friend<Person>,
                Team<Person>,
                EntityComposite
    {
    }
---
This didn't used to work, but I've fixed it so that during initialization the T types are resolved against the composite, and the actual types get stored in the model. Same goes for Property<T>.

/Rickard

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

Reply via email to