Package fr.paris.lutece.test.mocks
Class MockManagedThreadFactory
java.lang.Object
fr.paris.lutece.test.mocks.MockManagedThreadFactory
- All Implemented Interfaces:
jakarta.enterprise.concurrent.ManagedThreadFactory,ForkJoinPool.ForkJoinWorkerThreadFactory,ThreadFactory
@ApplicationScoped
@Alternative
@Priority(10)
public class MockManagedThreadFactory
extends Object
implements jakarta.enterprise.concurrent.ManagedThreadFactory
Stands for a container-provided ManagedThreadFactory when under java SE.
Contrary to other (application defined) beans, this mock is @ApplicationScoped because it is always needed, and because it does not actually replace another
app bean.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
MockManagedThreadFactory
public MockManagedThreadFactory()
-
-
Method Details
-
newThread
- Specified by:
newThreadin interfaceThreadFactory
-
newThread
- Specified by:
newThreadin interfaceForkJoinPool.ForkJoinWorkerThreadFactory
-