hljs.configure({cssSelector: "code"}); hljs.highlightAll();

Monday, February 12, 2024

Hookable/Wrappable attributes for COC and Events

 

Hookable Attribute:

Hookable(False)

Public void method()

Pre/post event handler or Chain of Command (COC) is not allowed.

Hookable(True)

private void method()

Pre/post event handler is allowed. Extension (COC) not allowed.

protected void method()

Pre/post event handler is allowed. COC is also allowed.


Wrappable Attribute:

Wrappable(false)

public void method()

Pre/post event handler is allowed. COC is not allowed.

Wrappable(true)

public void method()

Pre/post event handler is allowed. COC is allowed.

Protected Method:

COC is allowed. Pre/post event handler is not allowed.

Private Method:

Pre/Post and COC are not allowed.

Wrappable(true) not supported for private methods.

Thanks. Keep Learning!!