cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nikita Timofeev <>
Subject Changes in Cayenne DI API
Date Fri, 10 Mar 2017 08:50:47 GMT
Hi all,

We are going to add some type-safety into List and Map bindings in Cayenne DI.
In order to do that, small incompatibility should be introduced in Binder class:

Instead of these methods (they will be deprecated):

    <T> MapBuilder<T> bindMap(String bindingName);
    <T> ListBuilder<T> bindList(String bindingName);

New ones should be used:

    <T> MapBuilder<T> bindMap(Class<T> valueType);
    <T> MapBuilder<T> bindMap(Class<T> valueType, String bindingName);
    <T> ListBuilder<T> bindList(Class<T> valueType);
    <T> ListBuilder<T> bindList(Class<T> valueType, String bindingName);

If you are using these methods directly in your code it will likely be broken.

Best regards,
Nikita Timofeev

View raw message