openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1445944 - in /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans: inject/InjectableMethod.java intercept/DefaultInterceptorHandler.java
Date Wed, 13 Feb 2013 21:45:27 GMT
Author: struberg
Date: Wed Feb 13 21:45:27 2013
New Revision: 1445944

URL: http://svn.apache.org/r1445944
Log:
OWB-344 add more docs and SuppressWarning for readResolve

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethod.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/DefaultInterceptorHandler.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethod.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethod.java?rev=1445944&r1=1445943&r2=1445944&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethod.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/inject/InjectableMethod.java
Wed Feb 13 21:45:27 2013
@@ -157,7 +157,8 @@ public class InjectableMethod<T> extends
             throw new WebBeansException(e);
         }
     }
-    
+
+    //X TODO is this still needed? If not we can also drop the whole dependentParameters...
     public Map<Bean<?>,Object> getDependentBeanParameters()
     {
         return dependentParameters;

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/DefaultInterceptorHandler.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/DefaultInterceptorHandler.java?rev=1445944&r1=1445943&r2=1445944&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/DefaultInterceptorHandler.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/intercept/DefaultInterceptorHandler.java
Wed Feb 13 21:45:27 2013
@@ -127,7 +127,12 @@ public class DefaultInterceptorHandler<T
      *     return provider;
      * }
      * </pre>
+     *
+     * The trick is to replace the generated proxy class with this handler
+     * and on deserialisation we use readResolve to create/resolve
+     * the proxy class again.
      */
+    @SuppressWarnings("unused")
     Object readResolve() throws ObjectStreamException
     {
         WebBeansContext webBeansContext = WebBeansContext.getInstance();



Mime
View raw message