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 bundle_watching

    Contains functionality related to watching OSGi bundles coming and going.

    Contains functionality related to watching OSGi bundles coming and going.

    Definition Classes
    domino
  • 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
  • package configuration_watching

    Contains functionality related to watching OSGi configuration changes.

    Contains functionality related to watching OSGi configuration changes.

    Definition Classes
    domino
  • package logging

    Contains functionality related to OSGi logging.

    Contains functionality related to OSGi logging.

    Definition Classes
    domino
  • package scala_logging

    Contains a simple Scala API for logging along with a Java Logging API implementation.

    Contains a simple Scala API for logging along with a Java Logging API implementation.

    The generic logging interface is provided by the Logger trait. Implementations for various logging frameworks such as SLF4J or OSGi LogService are provided in separate modules.

    See JavaUtilLogging for a convenient way to use Java Logging API.

    Definition Classes
    domino
  • package scala_osgi_metatype

    Contains Scala interfaces, adapters and builders for easily building OSGi Metatype descriptions.

    Contains Scala interfaces, adapters and builders for easily building OSGi Metatype descriptions. OSGi Metatype descriptions are very well suited for quickly providing administration user interfaces.

    You probably want to check out the builders.

    Definition Classes
    domino
    Note

    I created totally new Scala interfaces and adapters instead of directly implementing the Java interfaces of the OSGi Metatype API in order to prevent name clashes and confusion about what method to call. Scala Swing does it the same way, I guess for the same reasons.

  • package service_consuming

    Contains functionality related to acquiring OSGi services.

    Contains functionality related to acquiring OSGi services.

    Definition Classes
    domino
  • package service_providing

    Contains functionality related to registering objects in the OSGi service registry.

    Contains functionality related to registering objects in the OSGi service registry.

    Definition Classes
    domino
  • package service_watching

    Contains functionality related to watching OSGi services coming and going.

    Contains functionality related to watching OSGi services coming and going.

    Definition Classes
    domino
  • DominoActivator
  • DominoImplicits
  • DominoUtil
  • EmptyBundleActivator
  • OsgiContext
  • RichServiceReference
o

domino

DominoUtil

object DominoUtil

Contains utility methods used throughout Domino.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DominoUtil
  2. AnyRef
  3. 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. val GenericsExpressionKey: String

    The OSGi service property key for saving the generic types expression.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  7. def convertToDictionary(map: Map[String, Any]): Dictionary[String, AnyRef]

    Converts the given Scala Map to a Java Dictionary.

  8. def convertToMap(dictionary: Dictionary[_, _]): Map[String, Any]

    Converts the given Java Dictionary to a Scala Map.

  9. def createCompleteFilter(tpe: scala.reflect.api.JavaUniverse.Type, customFilter: String): String

    Creates a filter criteria expression which matches the given main type, the generic type and the given custom filter.

    Creates a filter criteria expression which matches the given main type, the generic type and the given custom filter. Thus, it includes the main OBJECTCLASS filter criteria.

    tpe

    Type information

    customFilter

    A custom filter expression

  10. def createGenericsAndCustomFilter(tpe: scala.reflect.api.JavaUniverse.Type, customFilter: String): Option[String]

    Creates a filter criteria expression which matches the given type and the given custom filter.

    Creates a filter criteria expression which matches the given type and the given custom filter. Doesn't include the main OBJECTCLASS filter criteria. If no custom filter is given and generic types are not used, returns None.

    tpe

    Type information

    customFilter

    A custom filter expression

  11. def createGenericsExpression(types: Traversable[scala.reflect.api.JavaUniverse.Type]): Option[String]

    Creates an expression which describes the complete type information of the given types including generic type parameters.

    Creates an expression which describes the complete type information of the given types including generic type parameters. If none of the given types contains type parameters, it returns None.

    The resulting expression is supposed to be registered as OSGi service property so it can be used as a criteria in a service query.

    Example input:

    • Map[String, Map[String, Integer]]
    • List[Number]
    • String

    Example result: ";Map[String, Map[String, Integer]];List[Number];String;" (package names omitted)

    types

    Type objects which might contain information about generic type arguments

    returns

    types expression if generic type parameters are used

    Note

    A semicolon is used instead of a comma to separate the types.

  12. def createGenericsFilter(tpe: scala.reflect.api.JavaUniverse.Type): Option[String]

    Creates a filter expression that would match the given type with its generic type parameters.

    Creates a filter expression that would match the given type with its generic type parameters. Uses wildcards because the service can be registered under several types. That would result in several generic type expressions separated by semicolon.

    If no generic type is used in the type, returns None.

  13. def createObjectClassFilter(typeName: String): String

    Creates an OBJECTCLASS filter for the given class.

  14. def dumpBundle(context: BundleContext): String
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  19. def getFullTypeName(tpe: scala.reflect.api.JavaUniverse.Type): String

    Returns the qualified name of the given type.

  20. def hasTypeArguments(tpe: scala.reflect.api.JavaUniverse.Type): Boolean

    Returns whether the given type tag has type parameters.

  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def linkFiltersWithAnd(filterOne: Option[String], filterTwo: Option[String]): Option[String]

    Links to filter expressions with a logical AND if both are given, otherwise returns just one of it.

    Links to filter expressions with a logical AND if both are given, otherwise returns just one of it.

    filterOne

    First filter

    filterTwo

    Second filter

    returns

    result

  24. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  25. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped