Class DefaultThreadFactory
java.lang.Object
org.wildfly.clustering.context.ContextualThreadFactory<ClassLoader>
org.wildfly.clustering.context.DefaultThreadFactory
- All Implemented Interfaces:
ThreadFactory
Default
ThreadFactory implementation that applies a specific context ClassLoader.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultThreadFactory(Class<?> targetClass, ClassLoader loader) Creates a new thread factory for the specified class using the specified context class loader.DefaultThreadFactory(ThreadGroup group, ClassLoader loader) Creates a new thread factory using the specified thread group and context class loader.DefaultThreadFactory(ThreadFactory factory, ClassLoader loader) Creates a new thread factory using the specified context class loader. -
Method Summary
Methods inherited from class ContextualThreadFactory
newThread
-
Constructor Details
-
DefaultThreadFactory
Creates a new thread factory for the specified class using the specified context class loader.- Parameters:
targetClass- the class from which a thread group will be created.loader- the class loader context
-
DefaultThreadFactory
Creates a new thread factory using the specified thread group and context class loader.- Parameters:
group- the thread group for threads created by this factoryloader- the class loader context
-
DefaultThreadFactory
Creates a new thread factory using the specified context class loader.- Parameters:
factory- the decorated thread factoryloader- the class loader context
-