Pattern.Manager.setClosure()

Signature

void setClosure(Object patternInstance, Object closure)

Domain

ACTION

Description

Sets a $1closure$1 object that will be delivered in the listener function call to help identify this pattern instance. The value is set only for the given pattern instance.

Parameters

NameTypeDescription
patternInstanceObjectThe return value (opaque) from the pattern $1instantiate(String)$1 method.
closureObjectThe Pattern Service will not interpret this object. It can be of any type.

Returns

TypeDescription
void

Cautions

none