You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by co...@apache.org on 2010/09/04 20:45:01 UTC

svn commit: r992656 - /openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbUtility.java

Author: covener
Date: Sat Sep  4 18:45:01 2010
New Revision: 992656

URL: http://svn.apache.org/viewvc?rev=992656&view=rev
Log:
add javadoc to isBusinessMethod() and note a TODO


Modified:
    openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbUtility.java

Modified: openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbUtility.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbUtility.java?rev=992656&r1=992655&r2=992656&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbUtility.java (original)
+++ openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/util/EjbUtility.java Sat Sep  4 18:45:01 2010
@@ -186,6 +186,17 @@ public final class EjbUtility
         }        
     }
     
+    /**
+     * Check if a given Method is a business method of the given enterprise bean.
+     * 
+     * FIXME: While remote interfaces aren't part of a 299 beans types, method 
+     * invocations of non-contextual references (@EJB) to remote interfaces are 
+     * business method invocations nonetheless.  Not presently accounted for here.
+     * 
+     * @param method the method of interest
+     * @param bean the Contextual
+     * @return true if the Method could be a business method invocation
+     */
     public static boolean isBusinessMethod(Method method, BaseEjbBean<?> bean)
     {
         List<Class<?>> businessLocals = bean.getBusinessLocalInterfaces();