Because Double Brace Initialization (DBI) creates an anonymous class with a
reference to the instance of the owning object, its use can lead to memory
leaks if the anonymous inner class is returned and held by other objects. Even
when there's no leak, DBI is so obscure that it's bound to confuse most
maintainers.
get autowired and component scanned and don't have to be completely
configured in applicationContext-service.xml
Signed-off-by: Derrek Bond <yoyo007@gmail.com>
More code review feedback. Added case-insensitive (and correctly spelled)
option to getAlphabeticalAlbums. Added getAlbumCount() method to AlbumDao.
Moved AlbumUpnpProcessor from getting all the albums and returning a subset
to requesting the subset directly from the dao, as suggested.