openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r907249 - /openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbUtility.java
Date Sat, 06 Feb 2010 16:28:29 GMT
Author: gerdogdu
Date: Sat Feb  6 16:28:29 2010
New Revision: 907249

URL: http://svn.apache.org/viewvc?rev=907249&view=rev
Log:
Update ejb utility class for event setted injection target

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

Modified: openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbUtility.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbUtility.java?rev=907249&r1=907248&r2=907249&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbUtility.java
(original)
+++ openwebbeans/trunk/webbeans-openejb/src/main/java/org/apache/webbeans/ejb/util/EjbUtility.java
Sat Feb  6 16:28:29 2010
@@ -82,7 +82,7 @@
         ejbBeanCreator.defineApiType();
         ejbBeanCreator.defineScopeType("Session Bean implementation class : " + clazz.getName()
+ " stereotypes must declare same @ScopeType annotations");
         ejbBeanCreator.defineQualifier();
-        ejbBeanCreator.defineName(WebBeansUtil.getSimpleWebBeanDefaultName(clazz.getSimpleName()));
           
+        ejbBeanCreator.defineName(WebBeansUtil.getManagedBeanDefaultName(clazz.getSimpleName()));
           
         Set<ProducerMethodBean<?>> producerMethodBeans = ejbBeanCreator.defineProducerMethods();
       
         checkProducerMethods(producerMethodBeans, ejbBean);
         Set<ProducerFieldBean<?>> producerFieldBeans = ejbBeanCreator.defineProducerFields();
          
@@ -110,7 +110,7 @@
             
             if(producerEvent.isProducerSet())
             {
-                producerMethod.setProducer((Producer) ejbBeanCreator.getProducer());
+                producerMethod.setProducer((Producer) ejbBeanCreator);
             }
             
             producerEvent.setProducerSet(false);
@@ -127,7 +127,7 @@
             
             if(producerEvent.isProducerSet())
             {
-                producerField.setProducer((Producer) ejbBeanCreator.getProducer());
+                producerField.setProducer((Producer) ejbBeanCreator);
             }
             
             producerEvent.setProducerSet(false);
@@ -164,7 +164,7 @@
         //Set InjectionTarget that is used by the container to inject dependencies!
         if(ejbBeanCreator.isInjectionTargetSet())
         {
-            ejbBean.setInjectionTarget(ejbBeanCreator.getInjectedTarget());   
+            ejbBean.setInjectionTarget(ejbBeanCreator);   
         }
         
         BeanManagerImpl.getManager().addBean(ejbBean);



Mime
View raw message