mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 22:45:45 +01:00
use SubjectAwareExecutorService for repository hooks
This commit is contained in:
@@ -42,6 +42,7 @@ import com.google.inject.Provider;
|
||||
import com.google.inject.Singleton;
|
||||
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.concurrent.SubjectAwareExecutorService;
|
||||
import org.apache.shiro.subject.Subject;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
@@ -115,7 +116,9 @@ public class DefaultRepositoryManager extends AbstractRepositoryManager
|
||||
this.repositoryDAO = repositoryDAO;
|
||||
this.repositoryListenersProvider = repositoryListenersProvider;
|
||||
this.repositoryHooksProvider = repositoryHooksProvider;
|
||||
this.executorService = Executors.newCachedThreadPool();
|
||||
|
||||
this.executorService =
|
||||
new SubjectAwareExecutorService(Executors.newCachedThreadPool());
|
||||
handlerMap = new HashMap<String, RepositoryHandler>();
|
||||
types = new HashSet<Type>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user