myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1225923 - /myfaces/extensions/cdi/trunk/jee-modules/jpa-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jpa/impl/PersistenceHelper.java
Date Fri, 30 Dec 2011 21:19:16 GMT
Author: gpetracek
Date: Fri Dec 30 21:19:15 2011
New Revision: 1225923

URL: http://svn.apache.org/viewvc?rev=1225923&view=rev
Log:
EXTCDI-254 javadoc hints added

Modified:
    myfaces/extensions/cdi/trunk/jee-modules/jpa-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jpa/impl/PersistenceHelper.java

Modified: myfaces/extensions/cdi/trunk/jee-modules/jpa-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jpa/impl/PersistenceHelper.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jpa-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jpa/impl/PersistenceHelper.java?rev=1225923&r1=1225922&r2=1225923&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jpa-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jpa/impl/PersistenceHelper.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jpa-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jpa/impl/PersistenceHelper.java
Fri Dec 30 21:19:15 2011
@@ -30,7 +30,9 @@ import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
 /**
- * @author Gerhard Petracek
+ * Helper which provides util methods for
+ * {@link org.apache.myfaces.extensions.cdi.jpa.impl.transaction.TransactionalInterceptorStrategy}
and
+ * {@link LegacyTransactionalInterceptorStrategy}
  */
 @Typed()
 public class PersistenceHelper
@@ -47,6 +49,12 @@ public class PersistenceHelper
         //prevent instantiation
     }
 
+    /**
+     * Analyzes the given instance and returns the found reference to an injected {@link
EntityManager}
+     * or null otherwise
+     * @param target instance to analyze
+     * @return the injected entity-manager or null otherwise
+     */
     public static EntityManager tryToFindEntityManagerReference(Object target)
     {
         EntityManagerEntry entityManagerEntry = tryToFindEntityManagerEntryInTarget(target);



Mime
View raw message