[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jboss-cvs-commits
Subject:    [jboss-cvs] jboss/src/main/org/jboss/proxy GenericProxyFactory.java
From:       Scott M Stark <starksm () users ! sourceforge ! net>
Date:       2005-01-31 23:03:41
Message-ID: E1Cvka5-0006T5-NX () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

  User: starksm 
  Date: 05/01/31 15:03:41

  Modified:    src/main/org/jboss/proxy Tag: Branch_4_0
                        GenericProxyFactory.java
  Log:
  Create a ClientContainerEx if the proxy interceptor list includes the \
org.jboss.proxy.IClientContainer so that the proxy handler has an implementation for \
the IClientContainer methods. Resolves [JBAS-1352] Generalized detached invoker proxy \
factory handling of IClientContainer.  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.6.6.2   +18 -3     jboss/src/main/org/jboss/proxy/GenericProxyFactory.java
  
  Index: GenericProxyFactory.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/proxy/GenericProxyFactory.java,v
  retrieving revision 1.6.6.1
  retrieving revision 1.6.6.2
  diff -u -r1.6.6.1 -r1.6.6.2
  --- GenericProxyFactory.java	4 Dec 2004 07:57:29 -0000	1.6.6.1
  +++ GenericProxyFactory.java	31 Jan 2005 23:03:35 -0000	1.6.6.2
  @@ -24,7 +24,7 @@
    *
    * @todo generalize the proxy/invoker factory object
    * @author Scott.Stark@jboss.org
  - * @version $Revision: 1.6.6.1 $
  + * @version $Revision: 1.6.6.2 $
    */
   public class GenericProxyFactory
   {
  @@ -98,7 +98,23 @@
         if( proxyBindingName != null )
            context.setInvokerProxyBinding(proxyBindingName);
   
  -      ClientContainer client = new ClientContainer(context);
  +      // If the IClientContainer interceptor was specified, use the \
ClientContainerEx  +      boolean wantIClientAccess = false;
  +      for(int n = 0; wantIClientAccess == false && n < interceptorClasses.size(); \
n ++)  +      {
  +         Class type = (Class) interceptorClasses.get(n);
  +         wantIClientAccess = type.isAssignableFrom(IClientContainer.class);
  +      }
  +      ClientContainer client;
  +      if( wantIClientAccess )
  +      {
  +         client = new ClientContainerEx(context);
  +      }
  +      else
  +      {
  +         client = new ClientContainer(context);
  +      }
  +
         try
         {
            loadInterceptorChain(interceptorClasses, client);
  @@ -109,7 +125,6 @@
         }
   
         ArrayList tmp = new ArrayList(Arrays.asList(ifaces));
  -      tmp.add(IClientContainer.class);
         Class[] ifaces2 = new Class[tmp.size()];
         tmp.toArray(ifaces2);
         return Proxy.newProxyInstance(
  
  
  


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
jboss-cvs-commits mailing list
jboss-cvs-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-cvs-commits


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic