You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@struts.apache.org by ku...@apache.org on 2024/02/09 02:08:33 UTC

(struts-site) 01/01: WW-5391 Update VelocityManager extension interface

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

kusal pushed a commit to branch WW-5391-velocity-ext
in repository https://gitbox.apache.org/repos/asf/struts-site.git

commit 1d8f8a2291cd3c192279b5d8729d7deabc162413
Author: Kusal Kithul-Godage <gi...@kusal.io>
AuthorDate: Fri Feb 9 13:08:24 2024 +1100

    WW-5391 Update VelocityManager extension interface
---
 source/plugins/plugins-architecture.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/source/plugins/plugins-architecture.md b/source/plugins/plugins-architecture.md
index e0a3cc647..f6859022f 100644
--- a/source/plugins/plugins-architecture.md
+++ b/source/plugins/plugins-architecture.md
@@ -80,7 +80,7 @@ The following extension points are available in Struts 2:
 | struts.mapper.class                     | Determines the ActionMapping from a request and a URI from an ActionMapping                                                                                                                  | singleton   | org.apache.struts2.dispatcher.mapper.ActionMapper                |
 | struts.multipart.parser                 | Parses a multipart request (file upload)                                                                                                                                                     | per request | org.apache.struts2.dispatcher.multipart.MultiPartRequest         |
 | struts.freemarker.manager.classname     | Loads and processes Freemarker templates                                                                                                                                                     | singleton   | org.apache.struts2.views.freemarker.FreemarkerManager            |
-| struts.velocity.manager.classname       | Loads and processes Velocity templates                                                                                                                                                       | singleton   | org.apache.struts2.views.velocity.VelocityManager                |
+| struts.velocity.manager.classname       | Loads and processes Velocity templates                                                                                                                                                       | singleton   | org.apache.struts2.views.velocity.VelocityManagerInterface       |
 | struts.actionValidatorManager           | Main interface for validation managers (regular and annotation based).  Handles both the loading of configuration and the actual validation (since 2.1)                                      | singleton   | com.opensymphony.xwork2.validator.ActionValidatorManager         |
 | struts.valueStackFactory                | Creates value stacks (since 2.1)                                                                                                                                                             | singleton   | com.opensymphony.xwork2.util.ValueStackFactory                   |
 | struts.reflectionProvider               | Provides reflection services, key place to plug in a custom expression language (since 2.1)                                                                                                  | singleton   | com.opensymphony.xwork2.reflection.ReflectionProvider            |
@@ -319,7 +319,7 @@ public class VelocityBeanSelectionProvider extends AbstractBeanSelectionProvider
 
     @Override
     public void register(ContainerBuilder builder, LocatableProperties props) throws ConfigurationException {
-        alias(VelocityManager.class, VelocityConstants.STRUTS_VELOCITY_MANAGER_CLASSNAME, builder, props);
+        alias(VelocityManagerInterface.class, VelocityConstants.STRUTS_VELOCITY_MANAGER_CLASSNAME, builder, props);
     }
 
 }