The Windsor container system under developpement
 | New in GreenPepper .Net 1.3
|
| Import |
| GreenPepper.WindsorCastle.Fixtures |
A Castle basic Xml configuration file
The Windsor system under development use WindsorContainer to resolve fixtures like in this next example :
| do with |
windsor hello world |
| check |
injected constructor |
hello constructor |
| check |
injected property |
hello property |
The Castle system under development can use auto-wiring system provided by Windsor:
| do with |
Windsor auto wired fixture |
| check |
getComponent1().ToString() |
Hello from component 1 class |
| check |
getComponent2().ToString() |
Hello from component 2 class |
If your fixture is not defined in xml configuration file, the system under development will try to load the fixture and to inject it data needed (if this data are defined in xml configuration file)
| check |
getComponent1().ToString() |
Hello from component 1 class |
| check |
getComponent2().ToString() |
Hello from component 2 class |
How to use Windsor system under development :
- You must add GreenPepper.Extensions.Castle.Windsor assembly in your configuration assemblies
- You must notify GreenPepper Core to use Windsor system under development : GreenPepper.WindsorCastle.WindsorSystemUnderDevelopment
(You can find more about system under development configuration here : Using a custom SystemUnderDevelopment)
- If you use a Windsor xml configuration file :
Just add the path to your Windsor configuration file in the system under development arguments