geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: rev 57530 - geronimo/trunk/modules/security/src/java/org/apache/geronimo/security
Date Fri, 12 Nov 2004 16:13:07 GMT
Author: adc
Date: Fri Nov 12 08:13:07 2004
New Revision: 57530

Modified:
   geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityService.java
Log:
A GBean's constructor must not call its member functions.

Modified: geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityService.java
==============================================================================
--- geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityService.java
(original)
+++ geronimo/trunk/modules/security/src/java/org/apache/geronimo/security/SecurityService.java
Fri Nov 12 08:13:07 2004
@@ -82,7 +82,12 @@
 
             throw (IllegalStateException) new IllegalStateException().initCause(pce);
         }
-        setPolicyConfigurationFactory(policyConfigurationFactory);
+        
+        this.policyConfigurationFactory = policyConfigurationFactory;
+        //TODO remove this if wrapper when GeronimoMBean leaves.
+        if (policyConfigurationFactory != null) {
+            System.setProperty("javax.security.jacc.PolicyConfigurationFactory.provider",
policyConfigurationFactory);
+        }
     }
 
     public String getPolicyConfigurationFactory() {

Mime
View raw message