trait Container extends ServiceLocator with AutoCloseable
- Source
- Container.scala
- Alphabetic
- By Inheritance
- Container
- AutoCloseable
- ServiceLocator
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def close(): Unit
- Definition Classes
- AutoCloseable
- Annotations
- @throws(classOf[java.lang.Exception])
- abstract def createScope(): Container
- abstract def registerAs[T, S <: T](lifetime: InstanceScope = Transient)(implicit manifest: scala.reflect.api.JavaUniverse.TypeTag[T], implementation: ClassTag[S]): Container.this.type
- abstract def registerFunc[T](factory: (Container) => T, lifetime: InstanceScope = Transient)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type
- abstract def registerGenerics[T](factory: (Container, Array[Type]) => T, lifetime: InstanceScope = Transient)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type
- abstract def registerInstance[T](service: T, handleClose: Boolean = false)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type
- abstract def tryResolve[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Try[T]
- Definition Classes
- ServiceLocator
- abstract def registerFuncAs[T](manifest: Type, factory: (Container) => T, lifetime: InstanceScope = Transient): Container.this.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.9.6) avoid using this unbounded method. Prefer bounded ones instead
- abstract def registerInstance[T](manifest: Type, factory: () => T): Container.this.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.7.2) avoid using this unbounded method. Prefer bounded ones instead
- abstract def registerInstanceAs[T](manifest: Type, instance: T): Container.this.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.9.5) avoid using this unbounded method. Prefer bounded ones instead
- abstract def registerType[T](manifest: Type, implementation: Class[T], lifetime: InstanceScope = Transient): Container.this.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) avoid using this unbounded method. Prefer bounded ones instead
- abstract def resolve(tpe: Type): Try[AnyRef]
- Definition Classes
- ServiceLocator
- Annotations
- @deprecated
- Deprecated
(Since version 0.6.0) avoid using this unbounded method. Prefer bounded ones instead
- abstract def resolveClass[T](manifest: Class[T]): T
- Annotations
- @deprecated
- Deprecated
(Since version 0.9.6) avoid using this unbounded method. Prefer bounded ones instead
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def register[T](lifetime: InstanceScope = Transient)(implicit manifest: ClassTag[T]): Container.this.type
- def resolve[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): T
Resolve a service registered in the locator.
Resolve a service registered in the locator.
- T
Type info
- returns
registered implementation
- Definition Classes
- ServiceLocator
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def register[T](singleton: Boolean)(implicit manifest: ClassTag[T]): Container.this.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.5.3) use register with InstanceScope instead
- def registerAs[T, S <: T](singleton: Boolean)(implicit manifest: scala.reflect.api.JavaUniverse.TypeTag[T], implementation: ClassTag[S]): Container.this.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.5.3) use registerAs with InstanceScope instead
- def registerFactory[T](factory: (Container) => T, singleton: Boolean)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type
- Annotations
- @deprecated
- Deprecated
(Since version 0.5.3) use registerFunc with InstanceScope instead