Packages

  • package root
    Definition Classes
    root
  • package domino

    Contains Domino, a lightweight Scala library for writing elegant OSGi bundle activators.

    Contains Domino, a lightweight Scala library for writing elegant OSGi bundle activators.

    For getting started, please see DominoActivator, the main entry point to the Domino DSL. Each sub package contains functionality for a specific part of the DSL.

    Definition Classes
    root
  • package capsule

    Contains a basic API and default implementation for building, using and extending a capsule-based DSL.

    Contains a basic API and default implementation for building, using and extending a capsule-based DSL.

    A capsule-based DSL is a generalization of the DSL used in the project "Domino". Here's an illustrative example how a capsuled-based DSL might look like:

    // Somewhere in your code
    whenTurnedOn {
      whenDevicePluggedIn {
        lightLED()
      }
    }

    The documentation distinguishes between 3 types of API clients: End users, capsule providers and context providers. The majority of developers will just come into contact with this API as end users.

    Definition Classes
    domino
  • Capsule
  • CapsuleContext
  • CapsuleConvenience
  • CapsuleScope
  • DefaultCapsuleScope
  • DynamicCapsuleContext
  • SimpleDynamicCapsuleContext
t

domino.capsule

DynamicCapsuleContext

trait DynamicCapsuleContext extends CapsuleContext

A CapsuleContext implementation based on scala.util.DynamicVariable and DefaultCapsuleScope.

As a context provider, you might want to mix this trait into your class to provide the framework for a capsule-based DSL. See class domino.OsgiContext in the project "Domino" for an example.

Linear Supertypes
CapsuleContext, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DynamicCapsuleContext
  2. CapsuleContext
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

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. 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
    DynamicCapsuleContextCapsuleContext
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  9. 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
    DynamicCapsuleContextCapsuleContext
  10. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  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( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from CapsuleContext

Inherited from AnyRef

Inherited from Any

Ungrouped