private <T>InjectScope<T> findScope(AnnotatedElement annElement){
  for (  Annotation ann : annElement.getAnnotations()) {
    Class<? extends Annotation> annType=ann.annotationType();
    if (annType.isAnnotationPresent(Scope.class)) {
      Supplier<InjectScope<T>> scopeGen=(Supplier)_scopeMap.get(annType);
      if (scopeGen != null) {
        return scopeGen.get();
      }
 else {
        log.fine(L.l("@{0} is an unknown scope",annType.getSimpleName()));
      }
    }
  }
  return new InjectScopeFactory<>();
}

private < T > InjectScope < T > findScope ( AnnotatedElement annElement ) { for ( Annotation ann : annElement . getAnnotations ( ) ) { Class < ? extends Annotation > annType = ann . annotationType ( ) ; if ( annType . isAnnotationPresent ( Scope . class ) ) { Supplier < InjectScope < T > > scopeGen = ( Supplier ) _scopeMap . get ( annType ) ; if ( scopeGen != null ) { return scopeGen . get ( ) ; } else { log . fine ( L . l ( "@{0} is an unknown scope" , annType . getSimpleName ( ) ) ) ; } } } return new InjectScopeFactory < > ( ) ; }
finds the scope for a bean producing declaration , either a method or a type .
