cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CAY-2326) DI: can't override List/Map elements from another Module
Date Tue, 30 May 2017 08:25:04 GMT
Andrus Adamchik created CAY-2326:
------------------------------------

             Summary: DI: can't override List/Map elements from another Module
                 Key: CAY-2326
                 URL: https://issues.apache.org/jira/browse/CAY-2326
             Project: Cayenne
          Issue Type: Bug
    Affects Versions: 4.0.M5
            Reporter: Andrus Adamchik
            Assignee: Andrus Adamchik


The following fails to load SubX instance into collection.

{noformat}
Module m1 = new Module() {

    public void configure(Binder binder) {
        binder.bind(X.class).to(X.class);
        binder.bindList(Object.class, "xyz").add(X.class);
    }
};

Module m2 = new Module() {
    @Override
    public void configure(Binder binder) {
        binder.bind(X.class).to(SubX.class);
    }
};

DIBootstrap.createInjector(m1, m2);
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message