CAMEL-9879: Circuit Breaker EIP - That is using hystrix

Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/2e3745fb
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/2e3745fb
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/2e3745fb

Branch: refs/heads/master
Commit: 2e3745fb6468b0e9ac58121dd3844101ce740905
Parents: fcbebd7
Author: Claus Ibsen <[email protected]>
Authored: Tue Apr 19 14:21:37 2016 +0200
Committer: Claus Ibsen <[email protected]>
Committed: Tue Apr 19 18:16:45 2016 +0200

----------------------------------------------------------------------
 .../org/apache/camel/impl/DefaultProcessorFactory.java   | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/2e3745fb/camel-core/src/main/java/org/apache/camel/impl/DefaultProcessorFactory.java
----------------------------------------------------------------------
diff --git 
a/camel-core/src/main/java/org/apache/camel/impl/DefaultProcessorFactory.java 
b/camel-core/src/main/java/org/apache/camel/impl/DefaultProcessorFactory.java
index 4e64942..f958435 100644
--- 
a/camel-core/src/main/java/org/apache/camel/impl/DefaultProcessorFactory.java
+++ 
b/camel-core/src/main/java/org/apache/camel/impl/DefaultProcessorFactory.java
@@ -23,6 +23,17 @@ import org.apache.camel.spi.FactoryFinder;
 import org.apache.camel.spi.ProcessorFactory;
 import org.apache.camel.spi.RouteContext;
 
+/**
+ * Default {@link ProcessorFactory} that supports using 3rd party Camel 
components to implement the EIP {@link Processor}.
+ * <p/>
+ * The component should use the {@link FactoryFinder} SPI to specify a file 
with the name of the EIP model in the
+ * directory of {@link #RESOURCE_PATH}. The file should contain a property 
with key <tt>class</tt> that refers
+ * to the name of the {@link ProcessorFactory} the Camel component implement, 
which gets called for creating
+ * the {@link Processor}s for the EIP.
+ * <p/>
+ * The Hystrix EIP is such an example where {@link 
org.apache.camel.model.HystrixDefinition} is implemented
+ * in the <tt>camel-hystrix</tt> component.
+ */
 public class DefaultProcessorFactory implements ProcessorFactory {
 
     public static final String RESOURCE_PATH = 
"META-INF/services/org/apache/camel/model/";

Reply via email to