C# 클래스 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.
파일 보기 프로젝트 열기: nats/castle-1.0.3-mono 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
Union ( AspectSharp.Lang.AST.AspectDefinition aspects ) : AspectSharp.Lang.AST.AspectDefinition

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

비공개 메소드들

메소드 설명
Wrap ( object instance ) : object

메소드 상세

AspectEngine() 공개 메소드

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

Union() 보호된 메소드

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

WrapClass() 공개 메소드

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
리턴 object

WrapInterface() 공개 메소드

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
리턴 object