public < T > T getOneOptional ( Class < T > type , String name ) { Object locator = find ( name ) ; return locator != null ? _references . getOneOptional ( type , locator ) : null ; }
Gets one optional dependency by its name and matching to the specified type .