Repository: camel Updated Branches: refs/heads/master 1022e6a99 -> cc34580ca
CAMEL-8023: Added javadoc for bean component. Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/cc34580c Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/cc34580c Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/cc34580c Branch: refs/heads/master Commit: cc34580cad1e0062a9485cde5c2aebf2e48e254a Parents: 1022e6a Author: Claus Ibsen <davscl...@apache.org> Authored: Fri Feb 6 10:56:36 2015 +0100 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Feb 6 10:56:36 2015 +0100 ---------------------------------------------------------------------- .../apache/camel/component/bean/BeanEndpoint.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/cc34580c/camel-core/src/main/java/org/apache/camel/component/bean/BeanEndpoint.java ---------------------------------------------------------------------- diff --git a/camel-core/src/main/java/org/apache/camel/component/bean/BeanEndpoint.java b/camel-core/src/main/java/org/apache/camel/component/bean/BeanEndpoint.java index 6b4605e..c3a408f 100644 --- a/camel-core/src/main/java/org/apache/camel/component/bean/BeanEndpoint.java +++ b/camel-core/src/main/java/org/apache/camel/component/bean/BeanEndpoint.java @@ -37,6 +37,7 @@ public class BeanEndpoint extends ProcessorEndpoint { @UriParam(defaultValue = "false") private boolean cache; @UriParam(defaultValue = "false") + @Deprecated private boolean multiParameterArray; @UriParam private String method; @@ -73,6 +74,14 @@ public class BeanEndpoint extends ProcessorEndpoint { return multiParameterArray; } + /** + * Whether to message body is an array type to use during bean parameter binding. + * <p/> + * Note: This option is used internally by Camel, and is not intended for end users to use. + * + * @deprecated this option is used internally by Camel, and is not intended for end users to use + */ + @Deprecated public void setMultiParameterArray(boolean mpArray) { multiParameterArray = mpArray; } @@ -81,6 +90,14 @@ public class BeanEndpoint extends ProcessorEndpoint { return cache; } + /** + * Whether to cache the lookup of the bean. + * <p/> + * If this option is enabled, then the bean is used as a singleton scope. + * <p/> + * The default value of false, let Camel lookup the bean on each usage, which allows to honor + * Spring, CDI, etc to control the scope of the bean. + */ public void setCache(boolean cache) { this.cache = cache; }