• 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!
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.

Previously on "Spring.Net Framework"

Collapse

  • Solent
    replied
    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

    Leave a comment:


  • doodab
    replied
    Originally posted by Solent View Post
    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.

    Leave a comment:


  • TroubleAtMill
    replied
    Originally posted by suityou01 View Post
    Spring is IoC though

    wft is IoV?
    Note that the C key is next to V key

    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:


  • suityou01
    replied
    Originally posted by HairyArsedBloke View Post
    That's IoC he wants IoV
    Spring is IoC though

    wft is IoV?

    Leave a comment:


  • HairyArsedBloke
    replied
    That's IoC he wants IoV

    Leave a comment:


  • suityou01
    replied
    Originally posted by Solent View Post
    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.

    Leave a comment:


  • DimPrawn
    replied
    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:


  • d000hg
    replied
    Originally posted by MarillionFan View Post
    Are you sure it's Obfuscate code or has Milanbenes or Sasguru programmed it, because if they did, it aint done on purpose.
    Tosh, 'void ImportantClass::thisIsTheMethodThatDoesStuff()' is entirely self-documenting

    Leave a comment:


  • MarillionFan
    replied
    Originally posted by HairyArsedBloke View Post
    You can't. As he says it's 'Obfuscate code'.
    Are you sure it's Obfuscate code or has Milanbenes or Sasguru programmed it, because if they did, it aint done on purpose.

    Leave a comment:


  • HairyArsedBloke
    replied
    Originally posted by MarillionFan View Post
    What on earth are you talking about? Can anyone decode this IT gibberish please?
    You can't. As he says it's 'Obfuscate code'.

    Leave a comment:


  • MarillionFan
    replied
    Originally posted by Solent View Post
    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?

    Leave a comment:


  • Solent
    started a topic Spring.Net Framework

    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
Working...
X