- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- 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!
Reply to: Spring.Net Framework
Collapse
You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:
- You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
- You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
- If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Logging in...
Previously on "Spring.Net Framework"
Collapse
-
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
-
You want to replace the xml configuration files with code that configures the spring container programatically?Originally posted by Solent View PostHi,
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
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.
Leave a comment:
-
Note that the C key is next to V keyOriginally posted by suityou01 View PostSpring is IoC though
wft is IoV?
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.
Leave a comment:
-
Hi Solent,Originally posted by Solent View PostHi,
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
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.
Leave a comment:
-
No experience of Spring.NET but have used Castle Windsor http://www.castleproject.org/ IoC which can programatically setup dependencies rather than use XML config.
http://dotnetslackers.com/articles/d...inerpart1.aspx
Note to MarillionFan - Stick to SELECT * and worrying about page breaks on your reports.
Leave a comment:
-
Are you sure it's Obfuscate code or has Milanbenes or Sasguru programmed it, because if they did, it aint done on purpose.Originally posted by HairyArsedBloke View PostYou can't. As he says it's 'Obfuscate code'.
Leave a comment:
-
You can't. As he says it's 'Obfuscate code'.Originally posted by MarillionFan View PostWhat on earth are you talking about? Can anyone decode this IT gibberish please?
Leave a comment:
-
What on earth are you talking about? Can anyone decode this IT gibberish please?Originally posted by Solent View PostHi,
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
Leave a comment:
-
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.
ThanksTags: None
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers

Leave a comment: