You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by sn...@apache.org on 2006/01/11 16:19:30 UTC

svn commit: r368037 - /incubator/roller/trunk/src/org/roller/business/PlanetManagerImpl.java

Author: snoopdave
Date: Wed Jan 11 07:19:27 2006
New Revision: 368037

URL: http://svn.apache.org/viewcvs?rev=368037&view=rev
Log:
Moving property access to Roller-specific constructor so that planet-tool can work

Modified:
    incubator/roller/trunk/src/org/roller/business/PlanetManagerImpl.java

Modified: incubator/roller/trunk/src/org/roller/business/PlanetManagerImpl.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/business/PlanetManagerImpl.java?rev=368037&r1=368036&r2=368037&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/business/PlanetManagerImpl.java (original)
+++ incubator/roller/trunk/src/org/roller/business/PlanetManagerImpl.java Wed Jan 11 07:19:27 2006
@@ -33,7 +33,8 @@
  */
 public abstract class PlanetManagerImpl implements PlanetManager {
     protected Roller roller = null;
-    protected PersistenceStrategy strategy;
+    protected PersistenceStrategy strategy = null;
+    protected String localURL = null;
     
     private static Log logger =
             LogFactory.getFactory().getInstance(PlanetManagerImpl.class);
@@ -44,6 +45,7 @@
     public PlanetManagerImpl(PersistenceStrategy strategy, Roller roller) {
         this.strategy = strategy;
         this.roller = roller;
+        localURL = RollerRuntimeConfig.getProperty("site.absoluteurl");
     }
     
     public void refreshEntries() throws RollerException {
@@ -71,9 +73,7 @@
         //FeedFetcher feedFetcher = new HttpClientFeedFetcher(feedInfoCache);
         feedFetcher.setUsingDeltaEncoding(false);
         feedFetcher.setUserAgent("RollerPlanetAggregator");
-        
-        String localURL = RollerRuntimeConfig.getProperty("site.absoluteurl");
-        
+                
         // Loop through all subscriptions in the system
         Iterator subs = getAllSubscriptions();
         while (subs.hasNext()) {