type-autofac
Version:
tsioc is AOP, Ioc container, via typescript decorator
14 lines (13 loc) • 828 B
TypeScript
import { IAdviceMatcher } from './IAdviceMatcher';
import { AdviceMetadata } from './metadatas/index';
import { IPointcut, MatchPointcut } from './joinpoints/index';
import { Type, ObjectMap, Express3 } from '../types';
import { IContainer } from '../IContainer';
export declare class AdviceMatcher implements IAdviceMatcher {
private container;
constructor(container: IContainer);
match(aspectType: Type<any>, targetType: Type<any>, adviceMetas?: ObjectMap<AdviceMetadata[]>, instance?: any): MatchPointcut[];
protected matchAspectSelf(name: string, metadata: AdviceMetadata): boolean;
filterPointcut(type: Type<any>, points: IPointcut[], metadata: AdviceMetadata): MatchPointcut[];
protected matchTypeFactory(type: Type<any>, pointcut: string | RegExp): Express3<string, string, IPointcut, boolean>;
}