Child pages
  • Execute and Wait Interceptor
Skip to end of metadata
Go to start of metadata
Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Parameters

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Extending the Interceptor

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20

Examples

Error formatting macro: snippet: java.lang.IndexOutOfBoundsException: Index: 20, Size: 20
  • No labels

2 Comments

  1. There should be closing "/" for </interceptor-ref> and </param> in these examples.

  2. The "Extending the Interceptor" needs an additional note.

    If you are extending BackgroundProcess and have any initialization in your constructor after the call to the superclass's constructor, beware that there may be a race condition: the parent constructor calls start() on the thread before returning, and therefore beforeInvocation might be called before your extra initialization is complete. Make sure you add in synchronization logic that makes beforeInvocation wait until the full constructor is complete before it does it's thing.