-
Nov 29th, 2010, 03:13 PM
#1
Access service or DAO beans from a GenericConverter
I want to make a converter similar to IdToEntityConverter, but instead of calling a find method from entity class, I want it to call find method from a specific DAO (annotated with @Repository) or service class (annotated with @Service). I created my converter that extends ConditionalGenericConverter, and registered it with a default ConversionService.
But the problem is that I don't know how to get DAO or service beans from my converter implementation ? I tried autowireing the ApplicationContext and calling the getBean method but those beans are not in that context. Any suggestions ?
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules