[jboss-cvs] jboss-seam/src/ioc/org/jboss/seam/ioc ...

Gavin King gavin.king at jboss.com
Mon Mar 5 23:35:45 EST 2007


  User: gavin   
  Date: 07/03/05 23:35:45

  Modified:    src/ioc/org/jboss/seam/ioc  ProxyUtils.java
  Log:
  JBSEAM-989
  
  Revision  Changes    Path
  1.2       +7 -3      jboss-seam/src/ioc/org/jboss/seam/ioc/ProxyUtils.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: ProxyUtils.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/ioc/org/jboss/seam/ioc/ProxyUtils.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -b -r1.1 -r1.2
  --- ProxyUtils.java	17 Feb 2007 03:26:42 -0000	1.1
  +++ ProxyUtils.java	6 Mar 2007 04:35:45 -0000	1.2
  @@ -24,7 +24,10 @@
   import java.lang.reflect.Proxy;
   import java.util.Set;
   
  -import net.sf.cglib.proxy.Enhancer;
  +import javassist.util.proxy.ProxyObject;
  +
  +import org.jboss.seam.Component;
  +import org.jboss.seam.ComponentType;
   import org.jboss.seam.intercept.JavaBeanInterceptor;
   import org.jboss.seam.log.LogProvider;
   import org.jboss.seam.log.Logging;
  @@ -65,9 +68,10 @@
         // different interfaces at different times in an application. If
         // need is great I can create a Factory and assume the same
         // interfaces all the time.
  -      bean = Enhancer.create(beanClass, interfaces.toArray(new Class[interfaces.size()]), interceptor);
  +      ProxyObject po = Component.createProxyFactory(ComponentType.JAVA_BEAN, beanClass, interfaces).newInstance();
  +      po.setHandler(interceptor);
         interceptor.postConstruct();
  -      return bean;
  +      return po;
      }
   
      public static boolean isCglibProxyClass(Class clazz)
  
  
  



More information about the jboss-cvs-commits mailing list