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
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.
the function which might add capsules to the new scope
the new scope
(dynamicCapsuleContext: StringAdd).self
(dynamicCapsuleContext: StringFormat).self
(dynamicCapsuleContext: ArrowAssoc[DynamicCapsuleContext]).x
(Since version 2.10.0) Use leftOfArrow
instead
(dynamicCapsuleContext: Ensuring[DynamicCapsuleContext]).x
(Since version 2.10.0) Use resultOfEnsuring
instead
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 org.helgoboss.domino.OsgiContext in the project "Domino" for an example.