Class DefaultThreadFactory

java.lang.Object
org.wildfly.clustering.context.ContextualThreadFactory<ClassLoader>
org.wildfly.clustering.context.DefaultThreadFactory
All Implemented Interfaces:
ThreadFactory

public class DefaultThreadFactory extends ContextualThreadFactory<ClassLoader>
Default ThreadFactory implementation that applies a specific context ClassLoader.
Author:
Paul Ferraro
  • Constructor Details

    • DefaultThreadFactory

      public DefaultThreadFactory(Class<?> targetClass, ClassLoader loader)
      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

      public DefaultThreadFactory(ThreadGroup group, ClassLoader loader)
      Creates a new thread factory using the specified thread group and context class loader.
      Parameters:
      group - the thread group for threads created by this factory
      loader - the class loader context
    • DefaultThreadFactory

      public DefaultThreadFactory(ThreadFactory factory, ClassLoader loader)
      Creates a new thread factory using the specified context class loader.
      Parameters:
      factory - the decorated thread factory
      loader - the class loader context