All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.powerscala.property.backing.LocalBacking.scala Maven / Gradle / Ivy

The newest version!
package org.powerscala.property.backing

/**
 * LocalBacking utilizes a ThreadLocal for the backing store.
 *
 * @author Matt Hicks 
 */
class LocalBacking[T] extends Backing[T] {
  private val v = new ThreadLocal[T]()

  final def getValue = v.get()

  final def setValue(value: T) {
    v.set(value)
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy