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
  • FallbackLogger
  • JavaUtilLogging
  • JavaUtilLoggingLogger
  • Logger
  • 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
p

domino

scala_logging

package scala_logging

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.

Linear Supertypes
AnyRef, Any

Type Members

  1. class FallbackLogger extends Logger

    Logger decorator which logs to a secondary logger if the primary logger is not available.

  2. trait JavaUtilLogging extends AnyRef

    Convenience trait which you can mix into your class to have easy access to a logger based on Java Logging API.

    Convenience trait which you can mix into your class to have easy access to a logger based on Java Logging API.

    import domino.scala_logging.JavaUtilLogging
    
    class MyService extends JavaUtilLogging {
      log.debug("Hello World!")
    }
  3. class JavaUtilLoggingLogger extends Logger

    Logger Implementation using the logging facility integrated into the JDK.

  4. trait Logger extends AnyRef

    Provides a common interface for logging in Scala.

    Provides a common interface for logging in Scala.

    Makes use of Scala's Call-by-Name parameters so you don't have to check whether the desired log level is enabled or not.

    Implementations should make sure that the arguments are evaluated only if the corresponding log level is enabled. Additionatlly, they should handle the two-parameter methods like the single-parameter methods if null is passed as the exception parameter.

Inherited from AnyRef

Inherited from Any

Ungrouped