Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3609766
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:40:09+00:00 2026-05-18T21:40:09+00:00

I have the need to use Spring .Net in a project and am exploring

  • 0

I have the need to use Spring .Net in a project and am exploring configuration options. All I can find about config for Spring .Net is config file stuff. Does Spring support configuration in code? I have used Castle and Ninject, and both seem to offer this natively. I have found projects that claim to add support, but I dont want some knock off project that will die in 6 months. I have found references in blogs that seem to indicate Spring supports this but I cant find any documentation!!

Part 2 of this might be would you recommend Spring .Net over Windsor knowing it cant support fluent configuration? I know both are great IoC containers, but I have worked on projects that have massive config files for Spring configuration and I hate it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T21:40:09+00:00Added an answer on May 18, 2026 at 9:40 pm

    No, the current version (1.3) of Spring.NET only supports XML configuration. There has been talk about supporting Code as Configuration in future versions, but this has not yet materialized.

    In my opinion, Castle Windsor is far superior to Spring.NET. I can’t think of a single feature of Spring.NET that Castle Windsor doesn’t have. On the other hand, Castle Windsor has the following features that are not available in Spring.NET:

    • Code as Configuration
    • Convention-based configuration
    • More lifetimes
    • Custom lifetimes
    • Object graph decommissioning
    • Explicit mapping of interfaces/base classes to concrete types
    • Type-based resolution
    • Modular configuration (Installers)
    • Built-in support for Decorators
    • Typed Factories

    There are probably other features I forgot about…


    It appears I was a bit too quick on the trigger here, although to my defense, the Spring.NET documentation also states that there’s only XML configuration in the current version.

    However, it turns out that if for certain contexts, a very primitive API is available that enables you to configure a context without XML. Here’s an example:

    var context = new GenericApplicationContext();
    context.RegisterObjectDefinition("EggYolk", 
        new RootObjectDefinition(typeof(EggYolk)));
    context.RegisterObjectDefinition("OliveOil",
        new RootObjectDefinition(typeof(OliveOil)));
    context.RegisterObjectDefinition("Mayonnaise", 
        new RootObjectDefinition(typeof(Mayonnaise), 
            AutoWiringMode.AutoDetect));
    

    Notice how this API very closely mirrors the XML configuration schema. Thus, you don’t get any fluent API from the IObjectDefinitionRegistry interface, but at least there’s an API which is decoupled from XML. Building a fluent API on top of this is at least theoretically possible.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose you have two seperate ASP.NET Web Application projects that both need to use
I have some ASP.NET Master Pages located in one assembly. I need to use
I have a need to use extensionless URLs. I do not have access to
I sometimes need to use Visual Studio when I have limited screen real estate
I have a Set that I need to use the findAll closure upon. The
I have an application where I need to use 'Basic Authentication'; however, in order
I have to write something in vbscript that need to use a unique set.
I have a few places in the code where I need to use the
I have downloaded the silver light from this http://www.microsoft.com/silverlight// I need to use this
I have a dll that was written in c++, I need to use this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.