public class ClosureTriggerBinding
extends Object
implements SourceBinding, TriggerBinding
Creates bindings that track the property path referenced by a closure expression.
| Constructor and description |
|---|
ClosureTriggerBinding(Map<String, TriggerBinding> syntheticBindings)Creates a closure trigger binding with the supplied synthetic trigger registry. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public FullBinding |
createBinding(SourceBinding source, TargetBinding target)Creates a property-path-aware binding by snooping the closure's property accesses. |
|
public Closure |
getClosure()Returns the closure evaluated by this trigger binding. |
|
public Object |
getSourceValue()Evaluates the configured closure to obtain the current source value. |
|
public void |
setClosure(Closure closure)Replaces the closure evaluated by this trigger binding. |
Creates a closure trigger binding with the supplied synthetic trigger registry.
syntheticBindings - synthetic trigger bindings keyed by class and propertyCreates a property-path-aware binding by snooping the closure's property accesses.
source - the source binding, which must be this trigger bindingtarget - the target bindingReturns the closure evaluated by this trigger binding.
Evaluates the configured closure to obtain the current source value.
Replaces the closure evaluated by this trigger binding.
closure - the new source closureCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.