java - Jaxb deserialization with access to Spring beans -


i have model, looks that:

@xmlrootelement class foo {     private list<bar> bars;      //getters , setters.. } 

i deserialize object of class foo xml, problem is, instatiate class bar need spring-congigured service , 1 property of bar object(from prior serialization).

as far know, cannot use xmladapter(no access spring beans), , cannot serialize bars directly(no access spring beans , moreover, calling service model layer not do).

is ther simple way of doing this? not add aspectj injecting spring beans xmladapter.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -