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
Post a Comment