/** * Creates an instance with the given {@link Injector} that will be used for getting service instances. */ protected MapReduceTaskContextProvider(Injector injector, MapReduceClassLoader mapReduceClassLoader) { this.injector = injector; this.taskContexts = CacheBuilder.newBuilder().build(createCacheLoader(injector)); this.authorizationEnforcer = injector.getInstance(AuthorizationEnforcer.class); this.authenticationContext = injector.getInstance(AuthenticationContext.class); this.mapReduceClassLoader = mapReduceClassLoader; }
/** * Creates an instance with the given {@link Injector} that will be used for getting service instances. */ protected MapReduceTaskContextProvider(Injector injector, MapReduceClassLoader mapReduceClassLoader) { this.injector = injector; this.taskContexts = CacheBuilder.newBuilder().build(createCacheLoader(injector)); this.authorizationEnforcer = injector.getInstance(AuthorizationEnforcer.class); this.authenticationContext = injector.getInstance(AuthenticationContext.class); this.mapReduceClassLoader = mapReduceClassLoader; }