You can make a ExplicitOnlyPropertiesDependenciesModelInspector that
basically does the opposite of the default
PropertiesDependenciesModelInspector.
Then inherit from DefaultComponentModelBuilder, remove the default
PropertiesDependenciesModelInspector and add the
ExplicitOnlyPropertiesDependenciesModelInspector.
Then assign your custom component model builder to your kernel.
And you can make a facility that does this.

Regards,
Alwin

On Mar 20, 10:06 am, Mauro Servienti <mauro.servie...@gmail.com>
wrote:
> Ok, it works.
> But... I'm looking for a way to invert the container behavior...
> something like
>
> container.StopWiringProperties()
>
> [Wire]
> public Object MyObjectToWire{ get; set; }
>
> is there a way? Is there any facility automatically injected by castle
> I can remove to prevent the container injecting every time?
>
> TIA, best regards
>
> On Mar 13, 9:54 am, Ayende Rahien <aye...@ayende.com> wrote:
>
> > [DoNotWire]
>
> > On Fri, Mar 13, 2009 at 1:51 PM, Mauro Servienti
> > <mauro.servie...@gmail.com>wrote:
>
> > > Hy,
>
> > > I have a component (ISvcA) registered in the container, the ISvcA
> > > implementation has a property of type IMyComponent, the IMyComponent
> > > type is also registered in the container.
>
> > > I need to configure Castle in order to not inject an IMyComponent
> > > instance when a request for ISvcA is made, simply ignore the property.
>
> > > Any Idea?
>
> > > Best regards.
> > > .m- Hide quoted text -
>
> > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to castle-project-users@googlegroups.com
To unsubscribe from this group, send email to 
castle-project-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to