• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Spring.Net Framework

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.
 
Many thanks for the replies. Some useful info. Yes, I do apologise; IoC and not IoV (typo...). I though along the lines of ApplicationContext so will investigate this further
 

Advertisers

Back
Top