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

Gavin King gavin.king at jboss.com
Wed Dec 6 02:36:58 EST 2006


  User: gavin   
  Date: 06/12/06 02:36:58

  Modified:    src/main/org/jboss/seam  Component.java
  Log:
  namingpolicy, perhaps
  
  Revision  Changes    Path
  1.217     +8 -2      jboss-seam/src/main/org/jboss/seam/Component.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: Component.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/Component.java,v
  retrieving revision 1.216
  retrieving revision 1.217
  diff -u -b -r1.216 -r1.217
  --- Component.java	6 Dec 2006 06:07:26 -0000	1.216
  +++ Component.java	6 Dec 2006 07:36:58 -0000	1.217
  @@ -121,7 +121,7 @@
    *
    * @author <a href="mailto:theute at jboss.org">Thomas Heute</a>
    * @author Gavin King
  - * @version $Revision: 1.216 $
  + * @version $Revision: 1.217 $
    */
   @Scope(ScopeType.APPLICATION)
   @SuppressWarnings("deprecation")
  @@ -1915,13 +1915,19 @@
         return "Component(" + name + ")";
      }
   
  -   public static Class<Factory> createProxyFactory(ComponentType type, Class beanClass, Collection<Class> businessInterfaces)
  +   public static Class<Factory> createProxyFactory(ComponentType type, final Class beanClass, Collection<Class> businessInterfaces)
      {
         Enhancer en = new Enhancer();
         en.setUseCache(false);
         en.setInterceptDuringConstruction(false);
         en.setCallbackType(MethodInterceptor.class);
         en.setSuperclass( type==JAVA_BEAN ? beanClass : Object.class );
  +      /*en.setNamingPolicy( new NamingPolicy() {
  +         public String getClassName(String prefix, String source, Object key, Predicate names)
  +         {
  +            return beanClass.getName() + "SeamProxy";
  +         }
  +      });*/
         Set<Class> interfaces = new HashSet<Class>();
         if ( type.isSessionBean() )
         {
  
  
  



More information about the jboss-cvs-commits mailing list