camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hekon...@apache.org
Subject git commit: Added Javadoc.
Date Thu, 23 Jan 2014 21:07:40 GMT
Updated Branches:
  refs/heads/master bc983bdd4 -> 05b85587d


Added Javadoc.


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

Branch: refs/heads/master
Commit: 05b85587d6180398fd332c03f324b99266d94eb8
Parents: bc983bd
Author: Henryk Konsek <hekonsek@gmail.com>
Authored: Thu Jan 23 22:07:22 2014 +0100
Committer: Henryk Konsek <hekonsek@gmail.com>
Committed: Thu Jan 23 22:07:22 2014 +0100

----------------------------------------------------------------------
 .../java/org/apache/camel/bam/EntityManagerCallback.java     | 8 ++++++++
 1 file changed, 8 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/05b85587/components/camel-bam/src/main/java/org/apache/camel/bam/EntityManagerCallback.java
----------------------------------------------------------------------
diff --git a/components/camel-bam/src/main/java/org/apache/camel/bam/EntityManagerCallback.java
b/components/camel-bam/src/main/java/org/apache/camel/bam/EntityManagerCallback.java
index 5305fc1..604b0ee 100644
--- a/components/camel-bam/src/main/java/org/apache/camel/bam/EntityManagerCallback.java
+++ b/components/camel-bam/src/main/java/org/apache/camel/bam/EntityManagerCallback.java
@@ -18,6 +18,14 @@ package org.apache.camel.bam;
 
 import javax.persistence.EntityManager;
 
+/**
+ * Function operating on the {@code EntityManager} instance. Intended to be executed as a
part of the template method
+ * defined by the {@link org.apache.camel.bam.EntityManagerTemplate#execute(EntityManagerCallback)}.
+ * {@code EntityManager} should not be closed by the callback, as doing this is the responsibility
of the
+ * {@link org.apache.camel.bam.EntityManagerTemplate}.
+ *
+ * @param <T>
+ */
 public interface EntityManagerCallback<T> {
 
     T execute(EntityManager entityManager);


Mime
View raw message