We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In a class using a dependency that is generics such as:
public class DaoGoodsBrowseByCategory extends GrouponBaseDao<GoodsBrowseByCategory> { @Inject public DaoGoodsBrowseByCategory(ConnectionSource connectionSource, DatabaseTableConfig tableConfig) throws SQLException { super(connectionSource, tableConfig); }
where DatabaseTableConfig is
DatabaseTableConfig
public class DatabaseTableConfig<T>
TP then generates the following Factory
Factory
public final class DaoGoodsBrowseByCategory$$Factory implements Factory<DaoGoodsBrowseByCategory> { @Override public DaoGoodsBrowseByCategory createInstance(Scope scope) { scope = getTargetScope(scope); ConnectionSource param1 = scope.getInstance(ConnectionSource.class); DatabaseTableConfig<T> param2 = scope.getInstance(DatabaseTableConfig.class); DaoGoodsBrowseByCategory daoGoodsBrowseByCategory = new DaoGoodsBrowseByCategory(param1, param2); return daoGoodsBrowseByCategory; }
We should just strip off the <T> of DatabaseTableConfig<T> param2 = scope.getInstance(DatabaseTableConfig.class);
<T>
DatabaseTableConfig<T> param2 = scope.getInstance(DatabaseTableConfig.class);
The text was updated successfully, but these errors were encountered:
solves issue #117
76b1e00
8e6bb50
069706b
Merge pull request #157 from stephanenicolas/sni/issue-117
ca12dfc
solves issue #117: Make generic usage more robust with Lazy / Provider
This will be released in 1.0.0
Sorry, something went wrong.
No branches or pull requests
In a class using a dependency that is generics such as:
where
DatabaseTableConfig
isTP then generates the following
Factory
We should just strip off the
<T>
ofDatabaseTableConfig<T> param2 = scope.getInstance(DatabaseTableConfig.class);
The text was updated successfully, but these errors were encountered: