public interface CapsuleContext
| Modifier and Type | Method and Description |
|---|---|
void |
addCapsule(Capsule capsule)
Starts the given capsule and adds it to the current capsule scope.
|
CapsuleScope |
executeWithinNewCapsuleScope(java.lang.Runnable f)
Creates a new capsule scope on top of the active one and executes the given
function in it.
|
void addCapsule(Capsule capsule)
capsule - The capsule to add.CapsuleScope executeWithinNewCapsuleScope(java.lang.Runnable f)
f - The function which might add capsules to the new scope.