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 ?