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

I need to use IBM Informix for my project where I have point coordinates
I have a xsl file where i need to use parameters from an external
I have a asp.net and c# project. I need to print this string out,
I don't use .Net unless I have to, and for this project I have
Background: I have a project that is not at all large scale (2 ASP.NET
All, I have a VB6 project with about 100 custom collection classes which I
I have the need to use a Stack-like data structure for a program that
I have installed Matlab r2010a on my computer I need use the function xlsread
I need to use something like get_or_create() but the problem is that I have
I have some files that need to use by my application when it is

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.