How does Spring.NET use private setters?

While experimenting with this collection issue in Spring.NET, I discovered that Spring can inject dependency using a private setter. I have two questions:

  1. Is it documented anywhere?
  2. Is private setter recommended?

The documentation says:

Setter-based DI is implemented by calling setter methods on your objects ...

Of course, he doesn’t explicitly talk about public configuration methods, but this is what I always assumed. I am using version 1.0.2 on .NET 3.5.

+3
source share
2 answers

Don,

, asfaik - , . / .

, !

,

+2

Java- Spring , . , - Spring.

, .

+1

All Articles