Open Prasaddiwalkar opened 1 year ago
Don't you need an @Inject
annotation on your constructors?
I got my custom transformer working by putting the @Inject
annotations on the public constructors for Overwritr
, Definr
, and Defaultr
classes. Specifically the public (final Object spec)
constructors. To be honest, I'm not sure about the autowiring, though. I'm sure you're hitting the applyList
function in a debugger, right? If you are it definitely is an issue with spring boot annotations not being applied, but if you're running in a spring boot application it shouldn't matter.
I have following xml file from where I need to transform few properties. when I try to inject bean in
CountryListBean
inCountryCodeTransformer
it does not instantiate as I suspect JOLT custom transformation missing the SpringBoot context while performing transformation.any clue how to carry-forward SpringBoot context so that jolt custom transformer can get injected bean properly