C# Class AspectSharp.Core.Dispatcher.DefaultInvocationDispatcher

Inheritance: IInvocationDispatcher, IDeserializationCallback
显示文件 Open project: nats/castle-1.0.3-mono Class Usage Examples

Public Methods

Method Description
DefaultInvocationDispatcher ( AspectSharp.Lang.AST.AspectDefinition aspect ) : System
Init ( AspectEngine engine ) : void
Intercept ( Castle invocation ) : void
OnDeserialization ( object sender ) : void

Protected Methods

Method Description
CreateInterceptor ( InterceptorDefinitionCollection advices ) : IMethodInterceptor[]
ObtainAdvices ( PointCutDefinition pointcuts ) : IMethodInterceptor[]
ObtainFromCache ( MethodInfo method ) : IMethodInterceptor[]
ObtainInterceptorInstance ( Type adviceType ) : IMethodInterceptor
RegisterInCache ( MethodInfo method, IMethodInterceptor interceptors ) : void

Private Methods

Method Description
InitializeInterceptor ( IMethodInterceptor interceptor ) : void
ObtainAdvicesForMethod ( MethodInfo method, object instance, object arguments ) : IMethodInterceptor[]

Method Details

CreateInterceptor() protected method

protected CreateInterceptor ( InterceptorDefinitionCollection advices ) : IMethodInterceptor[]
advices AspectSharp.Lang.AST.InterceptorDefinitionCollection
return IMethodInterceptor[]

DefaultInvocationDispatcher() public method

public DefaultInvocationDispatcher ( AspectSharp.Lang.AST.AspectDefinition aspect ) : System
aspect AspectSharp.Lang.AST.AspectDefinition
return System

Init() public method

public Init ( AspectEngine engine ) : void
engine AspectEngine
return void

Intercept() public method

public Intercept ( Castle invocation ) : void
invocation Castle
return void

ObtainAdvices() protected method

protected ObtainAdvices ( PointCutDefinition pointcuts ) : IMethodInterceptor[]
pointcuts AspectSharp.Lang.AST.PointCutDefinition
return IMethodInterceptor[]

ObtainFromCache() protected method

protected ObtainFromCache ( MethodInfo method ) : IMethodInterceptor[]
method System.Reflection.MethodInfo
return IMethodInterceptor[]

ObtainInterceptorInstance() protected method

protected ObtainInterceptorInstance ( Type adviceType ) : IMethodInterceptor
adviceType System.Type
return IMethodInterceptor

OnDeserialization() public method

public OnDeserialization ( object sender ) : void
sender object
return void

RegisterInCache() protected method

protected RegisterInCache ( MethodInfo method, IMethodInterceptor interceptors ) : void
method System.Reflection.MethodInfo
interceptors IMethodInterceptor
return void