- Joined
- Jan 28, 2010
- Messages
- 16,178
- Likes received
- 516
- Thanks received
- 117
- Location
- A bit too close to Wandsworth
Hi,
Has anybody got experience in this, IoV/DI. I've been tasked with replacing some XML with bootstrap code using Spring, as the client wants to Obfuscate code but the obfuscation software renames the public methods and therefore IoV in the XML will not correlate to the methods. I dont how to rewrite the XML into Code using Spring.
Thanks
You want to replace the xml configuration files with code that configures the spring container programatically?
I think you need to create a GenericApplicationContext and then call registerObjectDefinition for each object you need to register.
It's probably easier to create new xml config files that use the obfuscated names.