james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nor...@apache.org
Subject svn commit: r453513 - /james/jspf/trunk/src/main/java/org/apache/james/jspf/SPF.java
Date Fri, 06 Oct 2006 06:55:26 GMT
Author: norman
Date: Thu Oct  5 23:55:26 2006
New Revision: 453513

URL: http://svn.apache.org/viewvc?view=rev&rev=453513
Log:
Remove the initalizeFallback method and use lazy initalization

Modified:
    james/jspf/trunk/src/main/java/org/apache/james/jspf/SPF.java

Modified: james/jspf/trunk/src/main/java/org/apache/james/jspf/SPF.java
URL: http://svn.apache.org/viewvc/james/jspf/trunk/src/main/java/org/apache/james/jspf/SPF.java?view=diff&rev=453513&r1=453512&r2=453513
==============================================================================
--- james/jspf/trunk/src/main/java/org/apache/james/jspf/SPF.java (original)
+++ james/jspf/trunk/src/main/java/org/apache/james/jspf/SPF.java Thu Oct  5 23:55:26 2006
@@ -259,16 +259,12 @@
      * 
      * @return the FallbackPolicy object
      */
-    public FallbackPolicy getFallbackPolicy() {
+    public synchronized FallbackPolicy getFallbackPolicy() {
+        // Initialize fallback policy
+        if (fallBack == null) {
+            this.fallBack =  new FallbackPolicy(this.log, parser);
+        }
         return fallBack;
-    }
-    
-    
-    /**
-     * Initialize fallback policy and enable its usage.
-     */
-    public void initializeFallbackPolicy() {
-        this.fallBack =  new FallbackPolicy(this.log, parser);
     }
     
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message