Packages

trait Container extends ServiceLocator with AutoCloseable

Source
Container.scala
Linear Supertypes
AutoCloseable, ServiceLocator, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Container
  2. AutoCloseable
  3. ServiceLocator
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def close(): Unit
    Definition Classes
    AutoCloseable
    Annotations
    @throws(classOf[java.lang.Exception])
  2. abstract def createScope(): Container
  3. abstract def registerAs[T, S <: T](lifetime: InstanceScope = Transient)(implicit manifest: scala.reflect.api.JavaUniverse.TypeTag[T], implementation: ClassTag[S]): Container.this.type
  4. abstract def registerFunc[T](factory: (Container) => T, lifetime: InstanceScope = Transient)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type
  5. abstract def registerGenerics[T](factory: (Container, Array[Type]) => T, lifetime: InstanceScope = Transient)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type
  6. abstract def registerInstance[T](service: T, handleClose: Boolean = false)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type
  7. abstract def tryResolve[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Try[T]
    Definition Classes
    ServiceLocator
  8. 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

  9. 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

  10. 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

  11. 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

  12. 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

  13. 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

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. def register[T](lifetime: InstanceScope = Transient)(implicit manifest: ClassTag[T]): Container.this.type
  16. 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
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. 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

  2. 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

  3. 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

Inherited from AutoCloseable

Inherited from ServiceLocator

Inherited from AnyRef

Inherited from Any

Ungrouped