Package org.openl.rules.core.ce
Class WorkerThreadFactory
- java.lang.Object
-
- org.openl.rules.core.ce.WorkerThreadFactory
-
- All Implemented Interfaces:
ForkJoinPool.ForkJoinWorkerThreadFactory
public class WorkerThreadFactory extends Object implements ForkJoinPool.ForkJoinWorkerThreadFactory
Custom implementation ofForkJoinPool.ForkJoinWorkerThreadFactoryto fixAccessControlExceptionwhen application run with customjava.security.policyfile. DefaultForkJoinPoolfactory implementation initializes thread with ProtectionDomain with no privileges:access: domain that failed ProtectionDomain null null
that cause permission check failingnull
-
-
Constructor Summary
Constructors Constructor Description WorkerThreadFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ForkJoinWorkerThreadnewThread(ForkJoinPool pool)
-
-
-
Method Detail
-
newThread
public ForkJoinWorkerThread newThread(ForkJoinPool pool)
- Specified by:
newThreadin interfaceForkJoinPool.ForkJoinWorkerThreadFactory
-
-