You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by lu...@apache.org on 2023/03/26 12:15:51 UTC

[struts-site] branch WW-5289-executor created (now 20812cef0)

This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a change to branch WW-5289-executor
in repository https://gitbox.apache.org/repos/asf/struts-site.git


      at 20812cef0 WW-5289 Updates docs about new extension point

This branch includes the following new commits:

     new 20812cef0 WW-5289 Updates docs about new extension point

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[struts-site] 01/01: WW-5289 Updates docs about new extension point

Posted by lu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

lukaszlenart pushed a commit to branch WW-5289-executor
in repository https://gitbox.apache.org/repos/asf/struts-site.git

commit 20812cef065955b0e8838f164d10807253974be4
Author: Lukasz Lenart <lu...@apache.org>
AuthorDate: Sun Mar 26 14:15:45 2023 +0200

    WW-5289 Updates docs about new extension point
---
 source/core-developers/execute-and-wait-interceptor.md | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/source/core-developers/execute-and-wait-interceptor.md b/source/core-developers/execute-and-wait-interceptor.md
index 6cc90e21d..190047da3 100644
--- a/source/core-developers/execute-and-wait-interceptor.md
+++ b/source/core-developers/execute-and-wait-interceptor.md
@@ -67,18 +67,19 @@ process extension, extend `ExecuteAndWaitInterceptor` and implement the `getNewB
 
 ## Using ExecutorProvider
 
-Since Struts 6.1.1 it is possible to use your own `ExecutorProvider` to run _background tasks_. To use your own executor
+Since Struts 6.2.0 it is possible to use your own `ExecutorProvider` to run _background tasks_. To use your own executor
 you must implement interface `org.apache.struts2.interceptor.exec.ExecutorProvider` and install the bean using `struts.xml`
 like follows:
 
 ```xml
-<bean type="org.apache.struts2.interceptor.exec.ExecutorProvider" 
+<bean type="org.apache.struts2.interceptor.exec.ExecutorProvider" name="myExecutor"
       class="com.company.MyExecutorProvider"/>
-```
 
-Please take a look into example implementation in the Showcase App.
+<constant name="struts.executor.provider" value="muExecutor"/>
+```
 
-If no custom executor is defined, Struts will use `org.apache.struts2.interceptor.exec.StrutsExecutorProvider` by default.
+Please take a look into example implementation in the Showcase App. If no custom executor has been defined, 
+Struts will use `org.apache.struts2.interceptor.exec.StrutsExecutorProvider` by default.
 
 ## Examples