public List < T > list ( Injector injector ) { List < T > r = new ArrayList < T > ( ) ; for ( Injector i = injector ; i != null ; i = i . getParent ( ) ) { for ( Entry < Key < ? > , Binding < ? > > e : i . getBindings ( ) . entrySet ( ) ) { if ( e . getKey ( ) . getTypeLiteral ( ) . equals ( type ) ) r . add ( ( T ) e . getValue ( ) . getProvider ( ) . get ( ) ) ; } } return r ; }
Returns all the extension implementations in the specified injector .