org.jbpm.kie.services.impl.bpmn2.builder

## Class GenericDefaultThreadLocal<T>

- java.lang.Object
- - java.lang.ThreadLocal<T>
  - - org.jbpm.kie.services.impl.bpmn2.builder.GenericDefaultThreadLocal<T>

- Type Parameters:
    `T` - The initial value class

      public class GenericDefaultThreadLocal<T>
      extends ThreadLocal<T>

  This is a generic extension of the `ThreadLocal` class that makes sure that an intial value is available for each call of `ThreadLocal.get()`.
  See Also:
    `ThreadLocal}`

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GenericDefaultThreadLocal(T defaultInstance)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected T` | `initialValue()`

    - ### Methods inherited from class java.lang.ThreadLocal

      `get, remove, set`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GenericDefaultThreadLocal

          public GenericDefaultThreadLocal(T defaultInstance)

  - ### Method Detail

    - #### initialValue

          protected T initialValue()

      Overrides:
        `initialValue` in class `ThreadLocal<T>`

Copyright © 2001–2015 JBoss by Red Hat. All rights reserved.