C# Class AspectSharp.AspectEngine

The AspectEngine is responsible for matching specified types agaisnt an AspectDefinition. If a match is found, a proxy is requested and the AOP features will be implemented in the Proxy.
Afficher le fichier Open project: nats/castle-1.0.3-mono Class Usage Examples

Méthodes publiques

Méthode Description
AspectEngine ( EngineConfiguration config ) : System

Constructs an AspectEngine

WrapClass ( Type classType ) : object

Wraps an interface. The target argument must be an object capable of responding to the interface messages, or your interceptors must be capable of respoding to them.

WrapInterface ( Type inter, object target ) : object

Wraps an interface. The target argument must be an object capable of responding to the interface messages, or your interceptors must be capable of respoding to them.

Méthodes protégées

Méthode Description
Union ( AspectSharp.Lang.AST.AspectDefinition aspects ) : AspectSharp.Lang.AST.AspectDefinition

Creates a single AspectDefinition as the merge of two or more AspectDefinitions

Private Methods

Méthode Description
Wrap ( object instance ) : object

Method Details

AspectEngine() public méthode

Constructs an AspectEngine
public AspectEngine ( EngineConfiguration config ) : System
config AspectSharp.Lang.AST.EngineConfiguration From where to gather the /// configuration
Résultat System

Union() protected méthode

Creates a single AspectDefinition as the merge of two or more AspectDefinitions
protected Union ( AspectSharp.Lang.AST.AspectDefinition aspects ) : AspectSharp.Lang.AST.AspectDefinition
aspects AspectSharp.Lang.AST.AspectDefinition The aspects to be merged
Résultat AspectSharp.Lang.AST.AspectDefinition

WrapClass() public méthode

Wraps an interface. The target argument must be an object capable of responding to the interface messages, or your interceptors must be capable of respoding to them.
public WrapClass ( Type classType ) : object
classType System.Type Concrete class with a available constructor (public or protected) to be wrapped
Résultat object

WrapInterface() public méthode

Wraps an interface. The target argument must be an object capable of responding to the interface messages, or your interceptors must be capable of respoding to them.
public WrapInterface ( Type inter, object target ) : object
inter System.Type Interface to be wrapped
target object The object that responds to the interface messages
Résultat object