import { getFromContainer } from '../container' ; import { MiddlewareMetadataArgs } from './args/MiddlewareMetadataArgs' ; import { MiddlewareInterface } from '../MiddlewareInterface' ; export class MiddlewareMetadata { target : Function ; priority : number ; constructor ( args ) { this . target = args . target ; this . priority = args . priority ; } get instance ( ) : MiddlewareInterface { return getFromContainer < MiddlewareInterface > ( this . target ) ; } }