public class DynamicCapsuleContext extends java.lang.Object implements CapsuleContext
| Constructor and Description |
|---|
DynamicCapsuleContext() |
| 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.
|
public void addCapsule(Capsule capsule)
CapsuleContextaddCapsule in interface CapsuleContextcapsule - The capsule to add.public CapsuleScope executeWithinNewCapsuleScope(java.lang.Runnable f)
CapsuleContextexecuteWithinNewCapsuleScope in interface CapsuleContextf - The function which might add capsules to the new scope.