@Override protected DelegatingSecurityContextExecutorService create() { return new DelegatingSecurityContextExecutorService(delegate); } }
@Override protected DelegatingSecurityContextExecutorService create() { return new DelegatingSecurityContextExecutorService(delegate, securityContext); } }
@Test(expected = IllegalArgumentException.class) public void constructorNullDelegate() { new DelegatingSecurityContextExecutorService(null); }
@Bean Executor asyncExecutor() { return new DelegatingSecurityContextExecutorService(Executors.newSingleThreadExecutor()); }
@Bean Executor asyncExecutor() { return new DelegatingSecurityContextExecutorService(Executors.newSingleThreadExecutor()); }
@Bean Executor asyncExecutor() { return new DelegatingSecurityContextExecutorService(Executors.newSingleThreadExecutor()); }
@Bean Executor asyncExecutor() { return new DelegatingSecurityContextExecutorService(Executors.newSingleThreadExecutor()); }
/** * @return ExecutorService with security context availability in thread * execution. */ @Bean(destroyMethod = "shutdown") @ConditionalOnMissingBean public ExecutorService asyncExecutor() { return new DelegatingSecurityContextExecutorService(threadPoolExecutor()); }
/** * @return ExecutorService with security context availability in thread * execution. */ @Bean(destroyMethod = "shutdown") @ConditionalOnMissingBean public ExecutorService asyncExecutor() { return new DelegatingSecurityContextExecutorService(threadPoolExecutor()); }