• 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

Solent

Should post faster
Joined
Jun 5, 2007
Messages
160
Likes received
0
Thanks received
0
Location
Lee on the Solent, Hants
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
 
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

What on earth are you talking about? Can anyone decode this IT gibberish please?
 
Are you sure it's Obfuscate code or has Milanbenes or Sasguru programmed it, because if they did, it aint done on purpose.:laugh
Tosh, 'void ImportantClass::thisIsTheMethodThatDoesStuff()' is entirely self-documenting ;)
 
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

Hi Solent,

I have a brief understanding of this. IoC means every class reference from now on is now an interface.

public class foo {
public Ibar bar;

}

Then in your XML you have a class descriptor for foo that dicates what Ibar actually is. So the Ibar dependancy is injected into the class foo, from the spring framework, by using the xml template. Hence the term "dependancy injection". Sometimes known as branch of "Inversion of control (IoC) pattern.

I'd to a tute online and get into the swing of things. Badoom-tish. :D
 
Spring is IoC though :confused:

wft is IoV?

Note that the C key is next to V key :bang:

But back on topic... My experience of Spring is on Java but a skim of the dotNET documentations suggests it's pretty much the same. So...

The way I would do it is to encrypt the XML file and then create a custom XmlObjectDefinitionReader that decrypts it in memory and then passes the XML document to the ApplicationContext.

Probably.
 

Advertisers

Back
Top