openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmannibu...@apache.org
Subject svn commit: r1647822 - in /openwebbeans/trunk: webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/OpenWebBeansEjbPlugin.java
Date Wed, 24 Dec 2014 18:09:37 GMT
Author: rmannibucau
Date: Wed Dec 24 18:09:36 2014
New Revision: 1647822

URL: http://svn.apache.org/r1647822
Log:
ejb plugin should create bean attributes of ejbs

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
    openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/OpenWebBeansEjbPlugin.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java?rev=1647822&r1=1647821&r2=1647822&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/container/BeanManagerImpl.java
Wed Dec 24 18:09:36 2014
@@ -1086,6 +1086,11 @@ public class BeanManagerImpl implements
      */
     public <T> BeanAttributes<T> createBeanAttributes(AnnotatedType<T>
type)
     {
+        final OpenWebBeansEjbPlugin ejbPlugin = webBeansContext.getPluginLoader().getEjbPlugin();
+        if (ejbPlugin != null && ejbPlugin.isSessionBean(type.getJavaClass()))
+        {
+            return ejbPlugin.createBeanAttributes(type);
+        }
         return BeanAttributesBuilder.forContext(webBeansContext).newBeanAttibutes(type).build();
     }
 

Modified: openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/OpenWebBeansEjbPlugin.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/OpenWebBeansEjbPlugin.java?rev=1647822&r1=1647821&r2=1647822&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/OpenWebBeansEjbPlugin.java
(original)
+++ openwebbeans/trunk/webbeans-spi/src/main/java/org/apache/webbeans/spi/plugins/OpenWebBeansEjbPlugin.java
Wed Dec 24 18:09:36 2014
@@ -91,4 +91,6 @@ public interface OpenWebBeansEjbPlugin e
     public Object getSessionBeanProxy(Bean<?> bean, Class<?> iface, CreationalContext<?>
creationalContext);
 
     Method resolveViewMethod(Bean<?> component, Method declaredMethod);
+
+    <T> BeanAttributes<T> createBeanAttributes(AnnotatedType<T> type);
 }
\ No newline at end of file



Mime
View raw message