Trait

domino

OsgiContext

Related Doc: package domino

Permalink

trait OsgiContext extends DynamicCapsuleContext with EmptyBundleActivator

Provides the basis for the Domino DSL by binding the bundle lifecycle to a capsule scope.

See also

domino.capsule

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OsgiContext
  2. EmptyBundleActivator
  3. BundleActivator
  4. DynamicCapsuleContext
  5. CapsuleContext
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. def addCapsule(capsule: Capsule): Unit

    Permalink

    Starts the given capsule and adds it to the current capsule scope.

    Starts the given capsule and adds it to the current capsule scope.

    capsule

    capsule

    Definition Classes
    DynamicCapsuleContextCapsuleContext
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def bundleContext: BundleContext

    Permalink

    Returns the bundle context as long as the bundle is active.

  7. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def executeWithinNewCapsuleScope(f: ⇒ Unit): CapsuleScope

    Permalink

    Creates a new capsule scope on top of the active one and executes the given function in it.

    Creates a new capsule scope on top of the active one and executes the given function in it. So the function sees the new capsule scope as the current one.

    f

    the function which might add capsules to the new scope

    returns

    the new scope

    Definition Classes
    DynamicCapsuleContextCapsuleContext
  11. def finalize(): Unit

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def start(context: BundleContext): Unit

    Permalink
    Definition Classes
    OsgiContextEmptyBundleActivator → BundleActivator
  19. def stop(context: BundleContext): Unit

    Permalink
    Definition Classes
    OsgiContextEmptyBundleActivator → BundleActivator
  20. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. def whenBundleActive(f: ⇒ Unit): Unit

    Permalink

    Defines a handler f to be executed when the bundle becomes active.

    Defines a handler f to be executed when the bundle becomes active. f is executed as soon as the bundle activator's start method is called. This should be called in the constructor of your activator.

    In f, you have the opportunity to add so called capsules, which have their own start and stop methods (a kind of mini bundles). Their stop methods will be invoked as soon as the bundle activator's stop method is called. So you have the big chance here to encapsulate start and stop logic at one place, making the bundle activator less error-prone, better readable and easier to write.

    f

    Handler

Inherited from EmptyBundleActivator

Inherited from BundleActivator

Inherited from DynamicCapsuleContext

Inherited from CapsuleContext

Inherited from AnyRef

Inherited from Any

Basics

Basic methods

Ungrouped