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

[camel] branch main updated (6ecb0cc378d -> 84d1f90f09d)

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

davsclaus pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


    from 6ecb0cc378d CAMEL-19670: camel-core - useOriginalMessage should do like stream-ca… (#10934)
     new 4193536b167 Polished javadoc
     new 84d1f90f09d Remove deprecated method (was not in v3)

The 2 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.


Summary of changes:
 .../org/apache/camel/ExtendedCamelContext.java     |  8 ----
 .../impl/engine/DefaultCamelContextExtension.java  |  5 --
 .../org/apache/camel/support/PluginHelper.java     | 55 ++--------------------
 3 files changed, 4 insertions(+), 64 deletions(-)


[camel] 02/02: Remove deprecated method (was not in v3)

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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 84d1f90f09dad019b6f6320792d83eda363eeed5
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Aug 1 08:05:20 2023 +0200

    Remove deprecated method (was not in v3)
---
 .../src/main/java/org/apache/camel/ExtendedCamelContext.java      | 8 --------
 .../apache/camel/impl/engine/DefaultCamelContextExtension.java    | 5 -----
 2 files changed, 13 deletions(-)

diff --git a/core/camel-api/src/main/java/org/apache/camel/ExtendedCamelContext.java b/core/camel-api/src/main/java/org/apache/camel/ExtendedCamelContext.java
index cc994fdf988..738e285ee42 100644
--- a/core/camel-api/src/main/java/org/apache/camel/ExtendedCamelContext.java
+++ b/core/camel-api/src/main/java/org/apache/camel/ExtendedCamelContext.java
@@ -467,14 +467,6 @@ public interface ExtendedCamelContext {
      */
     byte getStatusPhase();
 
-    /**
-     * Gets access to the internal plugin manager
-     *
-     * @return the internal plugin manager
-     */
-    @Deprecated
-    PluginManager getPluginManager();
-
     /**
      * Gets a plugin of the given type.
      *
diff --git a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultCamelContextExtension.java b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultCamelContextExtension.java
index f2d77c0aac2..b829d68d03b 100644
--- a/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultCamelContextExtension.java
+++ b/core/camel-base-engine/src/main/java/org/apache/camel/impl/engine/DefaultCamelContextExtension.java
@@ -575,11 +575,6 @@ class DefaultCamelContextExtension implements ExtendedCamelContext {
         return camelContext.getTestExcludeRoutes();
     }
 
-    @Override
-    public PluginManager getPluginManager() {
-        return pluginManager;
-    }
-
     ManagementStrategy getManagementStrategy() {
         return managementStrategy;
     }


[camel] 01/02: Polished javadoc

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

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 4193536b167f46866f4fd29ebd13084e7ca85ac1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Aug 1 08:04:43 2023 +0200

    Polished javadoc
---
 .../org/apache/camel/support/PluginHelper.java     | 55 ++--------------------
 1 file changed, 4 insertions(+), 51 deletions(-)

diff --git a/core/camel-support/src/main/java/org/apache/camel/support/PluginHelper.java b/core/camel-support/src/main/java/org/apache/camel/support/PluginHelper.java
index 0d79ac7789a..0abc1187795 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/PluginHelper.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/PluginHelper.java
@@ -14,7 +14,6 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
 package org.apache.camel.support;
 
 import java.util.concurrent.ScheduledExecutorService;
@@ -56,15 +55,16 @@ import org.apache.camel.spi.RoutesLoader;
 import org.apache.camel.spi.UnitOfWorkFactory;
 import org.apache.camel.spi.UriFactoryResolver;
 
+/**
+ * Convenient helper to get easy access to various extensions from {@link ExtendedCamelContext}.
+ */
 public final class PluginHelper {
-    private PluginHelper() {
 
+    private PluginHelper() {
     }
 
     /**
      * Returns the bean post processor used to do any bean customization.
-     *
-     * @return the bean post processor.
      */
     public static CamelBeanPostProcessor getBeanPostProcessor(CamelContext camelContext) {
         return getBeanPostProcessor(camelContext.getCamelContextExtension());
@@ -72,8 +72,6 @@ public final class PluginHelper {
 
     /**
      * Returns the bean post processor used to do any bean customization.
-     *
-     * @return the bean post processor.
      */
     public static CamelBeanPostProcessor getBeanPostProcessor(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(CamelBeanPostProcessor.class);
@@ -84,7 +82,6 @@ public final class PluginHelper {
      */
     public static CamelDependencyInjectionAnnotationFactory getDependencyInjectionAnnotationFactory(CamelContext camelContext) {
         return getDependencyInjectionAnnotationFactory(camelContext.getCamelContextExtension());
-
     }
 
     /**
@@ -197,8 +194,6 @@ public final class PluginHelper {
 
     /**
      * Gets the factory finder resolver to use
-     *
-     * @return the factory finder resolver
      */
     public static FactoryFinderResolver getFactoryFinderResolver(CamelContext camelContext) {
         return getFactoryFinderResolver(camelContext.getCamelContextExtension());
@@ -206,8 +201,6 @@ public final class PluginHelper {
 
     /**
      * Gets the factory finder resolver to use
-     *
-     * @return the factory finder resolver
      */
     public static FactoryFinderResolver getFactoryFinderResolver(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(FactoryFinderResolver.class);
@@ -215,8 +208,6 @@ public final class PluginHelper {
 
     /**
      * Returns the package scanning class resolver
-     *
-     * @return the resolver
      */
     public static PackageScanClassResolver getPackageScanClassResolver(CamelContext camelContext) {
         return getPackageScanClassResolver(camelContext.getCamelContextExtension());
@@ -224,8 +215,6 @@ public final class PluginHelper {
 
     /**
      * Returns the package scanning class resolver
-     *
-     * @return the resolver
      */
     public static PackageScanClassResolver getPackageScanClassResolver(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(PackageScanClassResolver.class);
@@ -233,8 +222,6 @@ public final class PluginHelper {
 
     /**
      * Returns the package scanning resource resolver
-     *
-     * @return the resolver
      */
     public static PackageScanResourceResolver getPackageScanResourceResolver(CamelContext camelContext) {
         return getPackageScanResourceResolver(camelContext.getCamelContextExtension());
@@ -242,8 +229,6 @@ public final class PluginHelper {
 
     /**
      * Returns the package scanning resource resolver
-     *
-     * @return the resolver
      */
     public static PackageScanResourceResolver getPackageScanResourceResolver(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(PackageScanResourceResolver.class);
@@ -251,8 +236,6 @@ public final class PluginHelper {
 
     /**
      * Returns the JAXB Context factory used to create Models.
-     *
-     * @return the JAXB Context factory used to create Models.
      */
     public static ModelJAXBContextFactory getModelJAXBContextFactory(CamelContext camelContext) {
         return getModelJAXBContextFactory(camelContext.getCamelContextExtension());
@@ -260,8 +243,6 @@ public final class PluginHelper {
 
     /**
      * Returns the JAXB Context factory used to create Models.
-     *
-     * @return the JAXB Context factory used to create Models.
      */
     public static ModelJAXBContextFactory getModelJAXBContextFactory(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(ModelJAXBContextFactory.class);
@@ -283,8 +264,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current data format resolver
-     *
-     * @return the resolver
      */
     public static DataFormatResolver getDataFormatResolver(CamelContext camelContext) {
         return getDataFormatResolver(camelContext.getCamelContextExtension());
@@ -292,8 +271,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current data format resolver
-     *
-     * @return the resolver
      */
     public static DataFormatResolver getDataFormatResolver(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(DataFormatResolver.class);
@@ -329,8 +306,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current health check resolver
-     *
-     * @return the resolver
      */
     public static HealthCheckResolver getHealthCheckResolver(CamelContext camelContext) {
         return getHealthCheckResolver(camelContext.getCamelContextExtension());
@@ -338,8 +313,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current health check resolver
-     *
-     * @return the resolver
      */
     public static HealthCheckResolver getHealthCheckResolver(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(HealthCheckResolver.class);
@@ -347,8 +320,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current dev console resolver
-     *
-     * @return the resolver
      */
     public static DevConsoleResolver getDevConsoleResolver(CamelContext camelContext) {
         return getDevConsoleResolver(camelContext.getCamelContextExtension());
@@ -356,8 +327,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current dev console resolver
-     *
-     * @return the resolver
      */
     public static DevConsoleResolver getDevConsoleResolver(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(DevConsoleResolver.class);
@@ -383,8 +352,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current {@link org.apache.camel.spi.InternalProcessorFactory}
-     *
-     * @return the factory
      */
     public static InternalProcessorFactory getInternalProcessorFactory(CamelContext camelContext) {
         return getInternalProcessorFactory(camelContext.getCamelContextExtension());
@@ -392,8 +359,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current {@link org.apache.camel.spi.InternalProcessorFactory}
-     *
-     * @return the factory
      */
     public static InternalProcessorFactory getInternalProcessorFactory(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(InternalProcessorFactory.class);
@@ -401,8 +366,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current {@link org.apache.camel.spi.InterceptEndpointFactory}
-     *
-     * @return the factory
      */
     public static InterceptEndpointFactory getInterceptEndpointFactory(CamelContext camelContext) {
         return getInterceptEndpointFactory(camelContext.getCamelContextExtension());
@@ -410,8 +373,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current {@link org.apache.camel.spi.InterceptEndpointFactory}
-     *
-     * @return the factory
      */
     public static InterceptEndpointFactory getInterceptEndpointFactory(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(InterceptEndpointFactory.class);
@@ -419,8 +380,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current {@link org.apache.camel.spi.RouteFactory}
-     *
-     * @return the factory
      */
     public static RouteFactory getRouteFactory(CamelContext camelContext) {
         return getRouteFactory(camelContext.getCamelContextExtension());
@@ -428,8 +387,6 @@ public final class PluginHelper {
 
     /**
      * Gets the current {@link org.apache.camel.spi.RouteFactory}
-     *
-     * @return the factory
      */
     public static RouteFactory getRouteFactory(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(RouteFactory.class);
@@ -451,8 +408,6 @@ public final class PluginHelper {
 
     /**
      * Gets the {@link org.apache.camel.AsyncProcessor} await manager.
-     *
-     * @return the manager
      */
     public static AsyncProcessorAwaitManager getAsyncProcessorAwaitManager(CamelContext camelContext) {
         return getAsyncProcessorAwaitManager(camelContext.getCamelContextExtension());
@@ -460,8 +415,6 @@ public final class PluginHelper {
 
     /**
      * Gets the {@link org.apache.camel.AsyncProcessor} await manager.
-     *
-     * @return the manager
      */
     public static AsyncProcessorAwaitManager getAsyncProcessorAwaitManager(ExtendedCamelContext extendedCamelContext) {
         return extendedCamelContext.getContextPlugin(AsyncProcessorAwaitManager.class);