import { RegistrationOptions } from './registry' ; import { Factory } from './factory' ; export const OWNER = '__owner__' ; export function getOwner ( object ) { return object [ OWNER ] ; } export function setOwner ( object , owner ) { object [ OWNER ] = owner ; } export interface Owner { identify ( specifier , referrer ? ) : string ; factoryFor ( specifier , referrer ? ) : Factory < any > ; lookup ( specifier , referrer ? ) : any ; }