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

com.softwaremill.macwire.scopes.ScopeStorage.scala Maven / Gradle / Ivy

The newest version!
package com.softwaremill.macwire.scopes

trait ScopeStorage {
  def get(key: String): Option[Any]
  def set(key: String, value: Any)
}

class MapScopeStorage(map: collection.mutable.Map[String, Any]) extends ScopeStorage {
  def get(key: String) = map.get(key)
  def set(key: String, value: Any) { map(key) = value }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy