trait OsgiContext extends DynamicCapsuleContext with EmptyBundleActivator
Provides the basis for the Domino DSL by binding the bundle lifecycle to a capsule scope.
- See also
- Alphabetic
- By Inheritance
- OsgiContext
- EmptyBundleActivator
- BundleActivator
- DynamicCapsuleContext
- CapsuleContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
addCapsule(capsule: Capsule): Unit
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
- DynamicCapsuleContext → CapsuleContext
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
bundleContext: BundleContext
Returns the bundle context as long as the bundle is active.
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
executeWithinNewCapsuleScope(f: ⇒ Unit): CapsuleScope
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
- DynamicCapsuleContext → CapsuleContext
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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
start(context: BundleContext): Unit
- Definition Classes
- OsgiContext → EmptyBundleActivator → BundleActivator
-
def
stop(context: BundleContext): Unit
- Definition Classes
- OsgiContext → EmptyBundleActivator → BundleActivator
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
whenBundleActive(f: ⇒ Unit): Unit
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'sstart
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 ownstart
andstop
methods (a kind of mini bundles). Theirstop
methods will be invoked as soon as the bundle activator'sstop
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