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.
Datei anzeigen Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method 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.

Protected Methods

Method 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

Method Description
Wrap ( object instance ) : object

Method Details

AspectEngine() public method

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

Union() protected method

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
return AspectSharp.Lang.AST.AspectDefinition

WrapClass() public method

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
return object

WrapInterface() public method

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
return object