private AbstractScope < ? , ? > instantiateScopes ( int count ) { checkArgument ( count <= scopeRoots . size ( ) ) ; AbstractScope < ? , ? > scope = scopes . peek ( ) ; for ( int i = 0 ; i < count ; i ++ ) { scope = scopeCreator . createScope ( scopeRoots . get ( i ) , scope ) ; scopes . push ( scope ) ; } scopeRoots . subList ( 0 , count ) . clear ( ) ; return scope ; }
Instantiate some but not necessarily all scopes from stored roots .