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

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

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

import scala.reflect.ClassTag

object NoOpScope extends Scope {
  def apply[T](createT: => T)(implicit tag: ClassTag[T]) = createT
  def get[T](key: String, createT: => T) = throw new RuntimeException("Should never be called!")
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy