< T > InjectScope < T > scope ( Class < ? extends Annotation > scopeType ) { Supplier < InjectScope < T >> scopeGen = ( Supplier ) _scopeMap . get ( scopeType ) ; if ( scopeGen == null ) { throw error ( "{0} is an unknown scope" , scopeType . getSimpleName ( ) ) ; } return scopeGen . get ( ) ; }
Returns the scope given a scope annotation .