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

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

commit 8b75531f886187cac7e812eab89ed36911e6849c
Author: Claus Ibsen <claus.ib...@gmail.com>
AuthorDate: Tue Oct 4 20:07:36 2022 -0500

    CAMEL-18574: camel-core - Add disabled option to EIPs
---
 .../java/org/apache/camel/spi/ManagementInterceptStrategy.java   | 3 +++
 .../main/java/org/apache/camel/model/ProcessorDefinition.java    | 9 ++++++---
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git 
a/core/camel-api/src/main/java/org/apache/camel/spi/ManagementInterceptStrategy.java
 
b/core/camel-api/src/main/java/org/apache/camel/spi/ManagementInterceptStrategy.java
index b7245f0da98..828c080063b 100644
--- 
a/core/camel-api/src/main/java/org/apache/camel/spi/ManagementInterceptStrategy.java
+++ 
b/core/camel-api/src/main/java/org/apache/camel/spi/ManagementInterceptStrategy.java
@@ -22,6 +22,9 @@ import org.apache.camel.NamedNode;
 import org.apache.camel.Ordered;
 import org.apache.camel.Processor;
 
+/**
+ * A specialized {@link InterceptStrategy} which is used for JMX management 
for EIPs.
+ */
 public interface ManagementInterceptStrategy {
 
     InstrumentationProcessor<?> createProcessor(NamedNode definition, 
Processor target);
diff --git 
a/core/camel-core-model/src/main/java/org/apache/camel/model/ProcessorDefinition.java
 
b/core/camel-core-model/src/main/java/org/apache/camel/model/ProcessorDefinition.java
index f9637e144d5..5dbe199fbde 100644
--- 
a/core/camel-core-model/src/main/java/org/apache/camel/model/ProcessorDefinition.java
+++ 
b/core/camel-core-model/src/main/java/org/apache/camel/model/ProcessorDefinition.java
@@ -852,21 +852,24 @@ public abstract class ProcessorDefinition<Type extends 
ProcessorDefinition<Type>
     }
 
     /**
-     * Disables this EIP from the route.
+     * Disables this EIP from the route during build time.
+     * Once an EIP has been disabled then it cannot be enabled later at 
runtime.
      */
     public Type disabled() {
         return disabled("true");
     }
 
     /**
-     * Whether to disable this EIP from the route.
+     * Whether to disable this EIP from the route during build time.
+     * Once an EIP has been disabled then it cannot be enabled later at 
runtime.
      */
     public Type disabled(boolean disabled) {
         return disabled(disabled ? "true" : "false");
     }
 
     /**
-     * Whether to disable this EIP from the route.
+     * Whether to disable this EIP from the route during build time.
+     * Once an EIP has been disabled then it cannot be enabled later at 
runtime.
      */
     public Type disabled(String disabled) {
         if (this instanceof OutputNode && getOutputs().isEmpty()) {

Reply via email to