Trait

net.revenj.extensibility

Container

Related Doc: package extensibility

Permalink

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

Abstract Value Members

  1. abstract def close(): Unit

    Permalink
    Definition Classes
    AutoCloseable
    Annotations
    @throws( classOf[java.lang.Exception] )
  2. abstract def createScope(): Container

    Permalink
  3. abstract def registerAs[T, S <: T](lifetime: InstanceScope = Transient)(implicit manifest: scala.reflect.api.JavaUniverse.TypeTag[T], implementation: ClassTag[S]): Container.this.type

    Permalink
  4. abstract def registerFunc[T](factory: (Container) ⇒ T, lifetime: InstanceScope = Transient)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type

    Permalink
  5. abstract def registerGenerics[T](factory: (Container, Array[Type]) ⇒ T, lifetime: InstanceScope = Transient)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type

    Permalink
  6. abstract def registerInstance[T](service: T, handleClose: Boolean = false)(implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Container.this.type

    Permalink
  7. abstract def tryResolve[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): Try[T]

    Permalink
    Definition Classes
    ServiceLocator
  8. abstract def registerInstance[T](manifest: Type, factory: () ⇒ T): Container.this.type

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.7.2) avoid using this unbounded method. Prefer bounded ones instead

  9. abstract def registerType[T](manifest: Type, implementation: Class[T], lifetime: InstanceScope = Transient): Container.this.type

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) avoid using this unbounded method. Prefer bounded ones instead

  10. abstract def resolve(tpe: Type): Try[AnyRef]

    Permalink
    Definition Classes
    ServiceLocator
    Annotations
    @deprecated
    Deprecated

    (Since version 0.6.0) avoid using this unbounded method. Prefer bounded ones instead

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. def register[T](lifetime: InstanceScope = Transient)(implicit manifest: ClassTag[T]): Container.this.type

    Permalink
  16. def resolve[T](implicit arg0: scala.reflect.api.JavaUniverse.TypeTag[T]): T

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef
  18. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def register[T](singleton: Boolean)(implicit manifest: ClassTag[T]): Container.this.type

    Permalink
    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

    Permalink
    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

    Permalink
    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