solarch
Dec 17th, 2011, 06:01 AM
I am curious as the different configurations between the two RowMapper implementations in Greenhouse. AccountMapper is annotated with @Component and its constructor annotated with @Inject for the FileStorage instance. Then there is the PictureUrlMapper, which also extends RowMapper, but it has no annotation. Is the reason due to the PictureUrlMapper constructor having parameters that are taking newed-up objects? Does this eliminate the need for both @Component and @Inject?
Thx
Thx