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

Inheritance: IContributeComponentModelConstruction
Afficher le fichier Open project: castleproject/Windsor

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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

Méthode Description
ApplyProxyBehavior ( ComponentProxyBehaviorAttribute behavior, ComponentModel model ) : void
EnsureComponentRegisteredWithInterface ( ComponentModel model ) : void
ReadProxyBehaviorFromConfig ( ComponentModel model, ComponentProxyBehaviorAttribute behavior ) : void

Method Details

ComponentProxyInspector() public méthode

public ComponentProxyInspector ( IConversionManager converter ) : System
converter IConversionManager
Résultat System

ProcessModel() public méthode

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
Résultat void

ReadProxyBehavior() protected méthode

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
Résultat void

ReadProxyBehaviorFromType() protected méthode

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