wvlet.airframe.SessionImpl.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of airspec_2.12 Show documentation
Show all versions of airspec_2.12 Show documentation
AirSpec: A Functional Testing Framework for Scala
The newest version!
package wvlet.airframe
import scala.language.experimental.macros
import scala.reflect.runtime.{universe => ru}
private[airframe] trait SessionImpl { self: Session =>
/**
* Build an instance of A. In general this method is necessary only when creating an entry point of your application.
* When feasible avoid using this method so that Airframe can inject objects where bind[X] is used.
*
* @tparam A
* @return
* object
*/
def build[A]: A = macro AirframeMacros.buildImpl[A]
/**
* Register an instance to the session to control the life cycle of the object under this session.
*/
def register[A: ru.TypeTag](instance: A): Unit
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy