C# Class Castle.MicroKernel.ModelBuilder.Inspectors.ComponentProxyInspector

Inheritance: IContributeComponentModelConstruction
Show file Open project: castleproject/Windsor

Public Methods

Method Description
ComponentProxyInspector ( IConversionManager converter ) : System
ProcessModel ( IKernel kernel, ComponentModel model ) : void

Searches for proxy behavior in the configuration and, if unsuccessful look for the ComponentProxyBehaviorAttribute attribute in the implementation type.

Protected Methods

Method Description
ReadProxyBehavior ( IKernel kernel, ComponentModel model ) : void

Reads the proxy behavior associated with the component configuration/type and applies it to the model.

ReadProxyBehaviorFromType ( Type implementation ) : ComponentProxyBehaviorAttribute

Returns a ComponentProxyBehaviorAttribute instance if the type uses the attribute. Otherwise returns null.

Private Methods

Method Description
ApplyProxyBehavior ( ComponentProxyBehaviorAttribute behavior, ComponentModel model ) : void
EnsureComponentRegisteredWithInterface ( ComponentModel model ) : void
ReadProxyBehaviorFromConfig ( ComponentModel model, ComponentProxyBehaviorAttribute behavior ) : void

Method Details

ComponentProxyInspector() public method

public ComponentProxyInspector ( IConversionManager converter ) : System
converter IConversionManager
return System

ProcessModel() public method

Searches for proxy behavior in the configuration and, if unsuccessful look for the ComponentProxyBehaviorAttribute attribute in the implementation type.
public ProcessModel ( IKernel kernel, ComponentModel model ) : void
kernel IKernel
model Castle.Core.ComponentModel
return void

ReadProxyBehavior() protected method

Reads the proxy behavior associated with the component configuration/type and applies it to the model.
/// If the conversion fails ///
protected ReadProxyBehavior ( IKernel kernel, ComponentModel model ) : void
kernel IKernel
model Castle.Core.ComponentModel
return void

ReadProxyBehaviorFromType() protected method

Returns a ComponentProxyBehaviorAttribute instance if the type uses the attribute. Otherwise returns null.
protected ReadProxyBehaviorFromType ( Type implementation ) : ComponentProxyBehaviorAttribute
implementation System.Type
return Castle.Core.ComponentProxyBehaviorAttribute