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

Shane Bryzak Shane_Bryzak at symantec.com
Tue Oct 10 23:09:07 EDT 2006


  User: sbryzak2
  Date: 06/10/10 23:09:07

  Modified:    src/main/org/jboss/seam/remoting/messaging 
                        SubscriptionRegistry.java
  Log:
  Replaced class.forName() with Reflections.classForName()
  
  Revision  Changes    Path
  1.8       +4 -3      jboss-seam/src/main/org/jboss/seam/remoting/messaging/SubscriptionRegistry.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: SubscriptionRegistry.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/remoting/messaging/SubscriptionRegistry.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- SubscriptionRegistry.java	8 Oct 2006 11:24:48 -0000	1.7
  +++ SubscriptionRegistry.java	11 Oct 2006 03:09:07 -0000	1.8
  @@ -5,6 +5,8 @@
   import java.util.Map;
   import java.util.Set;
   import java.util.UUID;
  +import javax.jms.ExceptionListener;
  +import javax.jms.JMSException;
   import javax.jms.TopicConnection;
   
   import org.apache.commons.logging.Log;
  @@ -17,8 +19,7 @@
   import org.jboss.seam.annotations.Scope;
   import org.jboss.seam.contexts.Context;
   import org.jboss.seam.contexts.Contexts;
  -import javax.jms.ExceptionListener;
  -import javax.jms.JMSException;
  +import org.jboss.seam.util.Reflections;
   
   /**
    *
  @@ -89,7 +90,7 @@
             String providerName = connectionProvider != null ?
                                       connectionProvider : DEFAULT_CONNECTION_PROVIDER;
             try {
  -            Class providerClass = Class.forName(providerName);
  +            Class providerClass = Reflections.classForName(providerName);
               JMSConnectionProvider provider = (JMSConnectionProvider) providerClass.newInstance();
               topicConnection = provider.createConnection();
   
  
  
  



More information about the jboss-cvs-commits mailing list