Capsule
Capsule is a simple Scala API for building, using and extending a domain-specific language (DSL) for managing start and stop logic.
Example
A Capsule DSL utilization might look like this:
// Somewhere in your code
whenTurnedOn {
whenDevicePluggedIn {
lightLED()
}
}
Documentation
Further reading
See project Domino for a real-world application of this API.