[jboss-cvs] jboss-seam/src/main/org/jboss/seam/security/authenticator ...
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/authenticator
Authenticator.java ProviderAuthenticator.java
Log:
Replaced class.forName() with Reflections.classForName()
Revision Changes Path
1.10 +3 -2 jboss-seam/src/main/org/jboss/seam/security/authenticator/Authenticator.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: Authenticator.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/authenticator/Authenticator.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -b -r1.9 -r1.10
--- Authenticator.java 5 Aug 2006 01:57:54 -0000 1.9
+++ Authenticator.java 11 Oct 2006 03:09:08 -0000 1.10
@@ -5,13 +5,14 @@
import org.jboss.seam.Component;
import org.jboss.seam.ScopeType;
+import org.jboss.seam.Seam;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.contexts.Contexts;
import org.jboss.seam.security.Authentication;
import org.jboss.seam.security.AuthenticationException;
import org.jboss.seam.security.UsernamePasswordToken;
import org.jboss.seam.security.adapter.AuthenticationAdapter;
-import org.jboss.seam.Seam;
+import org.jboss.seam.util.Reflections;
/**
*
@@ -68,7 +69,7 @@
{
try
{
- adapters.add((AuthenticationAdapter) Class.forName(name).newInstance());
+ adapters.add((AuthenticationAdapter) Reflections.classForName(name).newInstance());
}
catch (Exception ex)
{
1.6 +2 -1 jboss-seam/src/main/org/jboss/seam/security/authenticator/ProviderAuthenticator.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ProviderAuthenticator.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/security/authenticator/ProviderAuthenticator.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- ProviderAuthenticator.java 5 Aug 2006 01:57:54 -0000 1.5
+++ ProviderAuthenticator.java 11 Oct 2006 03:09:08 -0000 1.6
@@ -10,6 +10,7 @@
import org.jboss.seam.security.Authentication;
import org.jboss.seam.security.AuthenticationException;
import org.jboss.seam.security.provider.AuthenticationProvider;
+import org.jboss.seam.util.Reflections;
/**
* Performs authentication services against one or more providers.
@@ -71,7 +72,7 @@
{
try
{
- provider = Class.forName(provider.toString()).newInstance();
+ provider = Reflections.classForName(provider.toString()).newInstance();
providers.add( (AuthenticationProvider) provider);
}
catch (Exception ex)
More information about the jboss-cvs-commits
mailing list