[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security/provider/catalina ...

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


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

  Modified:    src/main/org/jboss/seam/security/provider/catalina 
                        CatalinaProvider.java
  Log:
  Replaced class.forName() with Reflections.classForName()
  
  Revision  Changes    Path
  1.5       +3 -1      jboss-seam/src/main/org/jboss/seam/security/provider/catalina/CatalinaProvider.java
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: CatalinaProvider.java
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/provider/catalina/CatalinaProvider.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- CatalinaProvider.java	8 Oct 2006 11:32:36 -0000	1.4
  +++ CatalinaProvider.java	11 Oct 2006 03:09:08 -0000	1.5
  @@ -3,6 +3,8 @@
   import java.lang.reflect.Method;
   import java.security.Principal;
   
  +import org.jboss.seam.util.Reflections;
  +
   /**
    * Wrapper for Tomcat realm authentication.  This class uses reflection to
    * locate a Tomcat realm, and provides wrapper methods to authenticate against
  @@ -27,7 +29,7 @@
       try
       {
         // First get the Server object
  -      Class serverFactoryClass = Class.forName("org.apache.catalina.ServerFactory");
  +      Class serverFactoryClass = Reflections.classForName("org.apache.catalina.ServerFactory");
         Method getServerMethod = serverFactoryClass.getMethod("getServer");
         Object server = getServerMethod.invoke(null);
   
  
  
  



More information about the jboss-cvs-commits mailing list