You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by on...@apache.org on 2023/06/03 04:49:46 UTC

[camel] 01/01: CAMEL-19140 : fix typo and update deprected property name from constants

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

onders pushed a commit to branch CAMEL-19410
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6898f2c888b58451e5b01159afb2f85380e3cfb3
Author: onders86 <on...@gmail.com>
AuthorDate: Sat Jun 3 05:49:21 2023 +0100

    CAMEL-19140 : fix typo and update deprected property name from constants
---
 .../camel/component/velocity/CamelVelocityDelegateClassLoader.java    | 4 ++--
 .../java/org/apache/camel/component/velocity/VelocityEndpoint.java    | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/CamelVelocityDelegateClassLoader.java b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/CamelVelocityDelegateClassLoader.java
index adf0858000f..325c43ea09c 100644
--- a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/CamelVelocityDelegateClassLoader.java
+++ b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/CamelVelocityDelegateClassLoader.java
@@ -20,7 +20,7 @@ package org.apache.camel.component.velocity;
  * This class loader is used to help us load the CamelVelocityClasspathResourceLoader in OSGi
  */
 public class CamelVelocityDelegateClassLoader extends ClassLoader {
-    private static final String CAMLE_VELOCITY_CLASSPATH_RESOURCE_LOADER
+    private static final String CAMEL_VELOCITY_CLASSPATH_RESOURCE_LOADER
             = CamelVelocityClasspathResourceLoader.class.getName();
 
     CamelVelocityDelegateClassLoader(ClassLoader parent) {
@@ -29,7 +29,7 @@ public class CamelVelocityDelegateClassLoader extends ClassLoader {
 
     @Override
     protected Class<?> findClass(String name) throws ClassNotFoundException {
-        if (CAMLE_VELOCITY_CLASSPATH_RESOURCE_LOADER.equals(name)) {
+        if (CAMEL_VELOCITY_CLASSPATH_RESOURCE_LOADER.equals(name)) {
             return CamelVelocityClasspathResourceLoader.class;
         }
         return super.findClass(name);
diff --git a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java
index 64e09c102f5..9216f49fde3 100644
--- a/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java
+++ b/components/camel-velocity/src/main/java/org/apache/camel/component/velocity/VelocityEndpoint.java
@@ -86,7 +86,7 @@ public class VelocityEndpoint extends ResourceEndpoint {
             // set default properties
             Properties properties = new Properties();
             properties.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_CACHE, isLoaderCache() ? "true" : "false");
-            properties.setProperty(RuntimeConstants.RESOURCE_LOADER, "file, class");
+            properties.setProperty(RuntimeConstants.RESOURCE_LOADERS, "file, class");
             properties.setProperty("resource.loader.class.description", "Camel Velocity Classpath Resource Loader");
             properties.setProperty("resource.loader.class.class", CamelVelocityClasspathResourceLoader.class.getName());
             final Logger velocityLogger = LoggerFactory.getLogger("org.apache.camel.maven.Velocity");