openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r1409721 - /openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java
Date Thu, 15 Nov 2012 10:32:03 GMT
Author: gerdogdu
Date: Thu Nov 15 10:32:02 2012
New Revision: 1409721

URL: http://svn.apache.org/viewvc?rev=1409721&view=rev
Log:
Enable protected fields for being extended with subclasses.

Modified:
    openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java

Modified: openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java?rev=1409721&r1=1409720&r2=1409721&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java
(original)
+++ openwebbeans/trunk/webbeans-ejb/src/main/java/org/apache/webbeans/ejb/common/proxy/EjbBeanProxyHandler.java
Thu Nov 15 10:32:02 2012
@@ -58,21 +58,21 @@ import org.apache.webbeans.proxy.MethodH
 public class EjbBeanProxyHandler implements InvocationHandler, MethodHandler, Serializable,
Externalizable
 {
     //Logger instance
-    private final static Logger logger = WebBeansLoggerFacade.getLogger(EjbBeanProxyHandler.class);
+    protected final static Logger logger = WebBeansLoggerFacade.getLogger(EjbBeanProxyHandler.class);
     
     /**Proxy ejb bean instance*/
-    private BaseEjbBean<?> ejbBean;
+    protected BaseEjbBean<?> ejbBean;
     
     /**Dependent ejb instance*/
-    private Object dependentEJB;
+    protected Object dependentEJB;
     
     /**Scope is dependent*/
-    private boolean isDependent = false;
+    protected boolean isDependent = false;
     
     /**Creational Context*/
-    private CreationalContext<?> creationalContext;
+    protected CreationalContext<?> creationalContext;
 
-    private WebBeansContext webBeansContext;
+    protected WebBeansContext webBeansContext;
 
     //DO NOT REMOVE, used by PASSIVATION.
     public EjbBeanProxyHandler() 
@@ -86,8 +86,9 @@ public class EjbBeanProxyHandler impleme
     public EjbBeanProxyHandler(BaseEjbBean<?> ejbBean, CreationalContext<?> creationalContext)
     {
         this.ejbBean = ejbBean;
-
-        if(ejbBean.getWebBeansContext().getWebBeansUtil().isScopeTypeNormal(ejbBean.getScope()))
+        this.webBeansContext = ejbBean.getWebBeansContext();
+        
+        if(this.webBeansContext.getWebBeansUtil().isScopeTypeNormal(ejbBean.getScope()))
         {
             initiateBeanBag((OwbBean<Object>)ejbBean, (CreationalContext<Object>)creationalContext);
         }
@@ -101,7 +102,6 @@ public class EjbBeanProxyHandler impleme
             isDependent = true;
             dependentEJB = null;
         }
-        webBeansContext = ejbBean.getWebBeansContext();
     }
     
     public Object invoke(Object instance, Method method, Method proceed, Object[] arguments)
throws Throwable



Mime
View raw message