camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hekon...@apache.org
Subject [1/3] git commit: Added Javadoc.
Date Sun, 16 Feb 2014 20:43:02 GMT
Repository: camel
Updated Branches:
  refs/heads/master 5e302fddc -> 54172d699


Added Javadoc.


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

Branch: refs/heads/master
Commit: 7f3d6ab62538c11ad1c67232800e782c88e11eec
Parents: 9b7ab42
Author: Henryk Konsek <hekonsek@gmail.com>
Authored: Sun Feb 16 17:36:04 2014 +0100
Committer: Henryk Konsek <hekonsek@gmail.com>
Committed: Sun Feb 16 17:36:04 2014 +0100

----------------------------------------------------------------------
 .../bean/validator/BeanValidatorComponent.java     | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/7f3d6ab6/components/camel-bean-validator/src/main/java/org/apache/camel/component/bean/validator/BeanValidatorComponent.java
----------------------------------------------------------------------
diff --git a/components/camel-bean-validator/src/main/java/org/apache/camel/component/bean/validator/BeanValidatorComponent.java
b/components/camel-bean-validator/src/main/java/org/apache/camel/component/bean/validator/BeanValidatorComponent.java
index 55ef4e3..e7ebbbe 100644
--- a/components/camel-bean-validator/src/main/java/org/apache/camel/component/bean/validator/BeanValidatorComponent.java
+++ b/components/camel-bean-validator/src/main/java/org/apache/camel/component/bean/validator/BeanValidatorComponent.java
@@ -32,12 +32,16 @@ import org.apache.camel.impl.DefaultComponent;
 import org.apache.camel.impl.ProcessorEndpoint;
 
 /**
- * Bean Validator Component for validating java beans against JSR 303 Validator
- *
- * @version 
+ * Bean Validator Component for validating Java beans against reference implementation of
JSR 303 Validator (Hibernate
+ * Validator).
  */
 public class BeanValidatorComponent extends DefaultComponent {
 
+    /**
+     * Prefix of the OSGi-aware implementations of {@code org.apache.camel.CamelContext}
interface (like
+     * {@code org.apache.camel.core.osgi.OsgiDefaultCamelContext} or
+     * {@code org.apache.camel.osgi.OsgiSpringCamelContext} ).
+     */
     private static final String OSGI_CONTEXT_CLASS_PREFIX = "Osgi";
 
     @Override
@@ -80,6 +84,13 @@ public class BeanValidatorComponent extends DefaultComponent {
         return new ProcessorEndpoint(uri, this, beanValidator);
     }
 
+    /**
+     * Recognizes if component is executed in the OSGi environment. This implementation assumes
that component is
+     * deployed into OSGi environment if it uses implementation of {@code org.apache.camel.CamelContext}
with class
+     * name starting with the "Osgi" prefix.
+     *
+     * @return true if component is executed in the OSGi environment. False otherwise.
+     */
     protected boolean isOsgiContext() {
         return getCamelContext().getClass().getSimpleName().startsWith(OSGI_CONTEXT_CLASS_PREFIX);
     }


Mime
View raw message