Klasse ThreadLocalStorageImpl

java.lang.Object
org.apache.fulcrum.yaafi.framework.tls.ThreadLocalStorageImpl
Alle implementierten Schnittstellen:
ThreadLocalStorage

public class ThreadLocalStorageImpl extends Object implements ThreadLocalStorage
Implementation of ThreadLocalStorage. The code was pasted from the Hivemnind container written by Howard Lewis Ship and Harish Krishnaswamy
Autor:
Siegfried Goeschl
  • Konstruktordetails

    • ThreadLocalStorageImpl

      public ThreadLocalStorageImpl()
  • Methodendetails

    • get

      public Object get(String key)
      Beschreibung aus Schnittstelle kopiert: ThreadLocalStorage
      Returns the thread-local object for the given key, or null if no such object exists.
      Angegeben von:
      get in Schnittstelle ThreadLocalStorage
      Parameter:
      key - the key for the lookup
      Gibt zurück:
      the object
    • put

      public void put(String key, Object value)
      Beschreibung aus Schnittstelle kopiert: ThreadLocalStorage
      Stores the value object at the given key, overwriting any prior value that may have been stored at that key. Care should be taken in selecting keys to avoid naming conflicts; in general, prefixing a key with a module id is a good idea.
      Angegeben von:
      put in Schnittstelle ThreadLocalStorage
      Parameter:
      key - the key of the object to store
      value - the value of the object to store
    • containsKey

      public boolean containsKey(String key)
      Beschreibung aus Schnittstelle kopiert: ThreadLocalStorage
      Checks if the thread-local object for the given key exists
      Angegeben von:
      containsKey in Schnittstelle ThreadLocalStorage
      Parameter:
      key - the key for the lookup
      Gibt zurück:
      true the object exists
    • clear

      public void clear()
      Beschreibung aus Schnittstelle kopiert: ThreadLocalStorage
      Clears all keys.
      Angegeben von:
      clear in Schnittstelle ThreadLocalStorage