User: starksm
Date: 01/11/25 19:24:54
Modified: src/main/org/jboss/security/plugins JaasSecurityManager.java
JaasSecurityManagerService.java
Log:
Drop the org.jboss.ejb.DeploymentException in favor of the
org.jboss.deployment.DeploymentException class.
Use the org.jboss.logging.Logger.getLogger factory method.
Revision Changes Path
1.16 +2 -2
jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java
Index: JaasSecurityManager.java
===================================================================
RCS file:
/cvsroot/jboss/jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManager.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- JaasSecurityManager.java 2001/11/24 00:32:55 1.15
+++ JaasSecurityManager.java 2001/11/26 03:24:54 1.16
@@ -43,7 +43,7 @@
@author <a href="[EMAIL PROTECTED]">Oleg Nitz</a>
@author [EMAIL PROTECTED]
- @version $Revision: 1.15 $
+ @version $Revision: 1.16 $
*/
public class JaasSecurityManager implements SubjectSecurityManager, RealmMapping
{
@@ -131,7 +131,7 @@
public JaasSecurityManager(String securityDomain)
{
this.securityDomain = securityDomain;
- this.log = Logger.create(getClass().getName()+"."+securityDomain);
+ this.log = Logger.getLogger(getClass().getName()+"."+securityDomain);
}
/** The domainCache is typically a shared object that is populated
1.9 +12 -12
jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManagerService.java
Index: JaasSecurityManagerService.java
===================================================================
RCS file:
/cvsroot/jboss/jbosssx/src/main/org/jboss/security/plugins/JaasSecurityManagerService.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- JaasSecurityManagerService.java 2001/11/24 00:32:55 1.8
+++ JaasSecurityManagerService.java 2001/11/26 03:24:54 1.9
@@ -58,7 +58,7 @@
implements JaasSecurityManagerServiceMBean
{
/** The logging interface */
- private static Logger log;
+ private static Logger theLog;
/** The class that provides the security manager implementation */
private static String securityMgrClassName =
"org.jboss.security.plugins.JaasSecurityManager";
/** The loaded securityMgrClassName */
@@ -77,8 +77,8 @@
{
// use thread-local principal and credential propagation
SecurityAssociation.setServer();
- // Get a log interface
- log = Logger.create(JaasSecurityManagerService.class);
+ // Get a theLog interface
+ theLog = Logger.getLogger(JaasSecurityManagerService.class);
}
/** The constructor does nothing as the security manager is created
@@ -141,7 +141,7 @@
}
catch(Exception e)
{
- log.error("flushAuthenticationCache failed", e);
+ theLog.error("flushAuthenticationCache failed", e);
}
}
@@ -177,11 +177,11 @@
catch(NamingException e)
{
}
- log.info("startService, cachePolicy="+cachePolicy);
+ theLog.info("startService, cachePolicy="+cachePolicy);
// Bind the default SecurityProxyFactory instance under
java:/SecurityProxyFactory
SecurityProxyFactory proxyFactory = (SecurityProxyFactory)
securityProxyFactoryClass.newInstance();
ctx.bind("java:/SecurityProxyFactory", proxyFactory);
- log.info("startService, SecurityProxyFactory="+proxyFactory);
+ theLog.info("startService, SecurityProxyFactory="+proxyFactory);
}
protected void stopService()
@@ -198,7 +198,7 @@
}
catch(Exception e)
{
- log.error("stopService", e);
+ theLog.error("stopService", e);
}
}
@@ -206,7 +206,7 @@
public static class SecurityDomainObjectFactory implements InvocationHandler,
ObjectFactory
{
- static Logger log = Logger.create(SecurityDomainObjectFactory.class);
+ static Logger theLog = Logger.getLogger(SecurityDomainObjectFactory.class);
/** Object factory implementation. This method returns a Context proxy
that is only able to handle a lookup operation for an atomic name of
a security domain.
@@ -229,25 +229,25 @@
Constructor ctor = securityMgrClass.getConstructor(parameterTypes);
Object[] args = {securityDomain};
securityMgr = ctor.newInstance(args);
- log.info("Created securityMgr="+securityMgr);
+ theLog.info("Created securityMgr="+securityMgr);
// See if the security mgr supports an externalized cache policy
try
{
parameterTypes[0] = CachePolicy.class;
Method m = securityMgrClass.getMethod("setCachePolicy",
parameterTypes);
args[0] = cachePolicy;
- log.info("setCachePolicy, c="+args[0]);
+ theLog.info("setCachePolicy, c="+args[0]);
m.invoke(securityMgr, args);
}
catch(Exception e2)
{ // No cache policy support, this is ok
}
- log.info("Added "+securityDomain+", "+securityMgr+" to map");
+ theLog.info("Added "+securityDomain+", "+securityMgr+" to map");
jsmMap.put(securityDomain, securityMgr);
}
catch(Exception e2)
{
- log.error("Failed to create sec mgr", e2);
+ theLog.error("Failed to create sec mgr", e2);
throw new NamingException("Failed to create sec mgr:"+e2.getMessage());
}
return securityMgr;
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development