You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2005/07/06 01:34:39 UTC

svn commit: r209351 - in /incubator/roller/trunk/src/org/roller: business/RollerImpl.java model/Roller.java

Author: agilliland
Date: Tue Jul  5 16:34:38 2005
New Revision: 209351

URL: http://svn.apache.org/viewcvs?rev=209351&view=rev
Log:
Adding methods for Roller.getThemeManager()


Modified:
    incubator/roller/trunk/src/org/roller/business/RollerImpl.java
    incubator/roller/trunk/src/org/roller/model/Roller.java

Modified: incubator/roller/trunk/src/org/roller/business/RollerImpl.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/business/RollerImpl.java?rev=209351&r1=209350&r2=209351&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/business/RollerImpl.java (original)
+++ incubator/roller/trunk/src/org/roller/business/RollerImpl.java Tue Jul  5 16:34:38 2005
@@ -9,12 +9,12 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.roller.RollerException;
-import org.roller.config.RollerConfig;
 import org.roller.model.FileManager;
 import org.roller.model.IndexManager;
 import org.roller.model.Roller;
+import org.roller.model.ThemeManager;
 import org.roller.model.ThreadManager;
-import org.roller.util.StringUtils;
+
 
 
 /**
@@ -32,6 +32,7 @@
     protected FileManager     mFileManager = null;
     protected IndexManager    mIndexManager = null;
     protected ThreadManager   mThreadManager = null;
+    protected ThemeManager    mThemeManager = null;
     
     
     /** Creates a new instance of RollerImpl */
@@ -74,6 +75,18 @@
             mIndexManager = new IndexManagerImpl();
         }
         return mIndexManager;
+    }
+    
+    /**
+     * @see org.roller.model.Roller#getThemeManager()
+     */
+    public ThemeManager getThemeManager() throws RollerException
+    {
+        if (mThemeManager == null)
+        {
+            mThemeManager = new ThemeManagerImpl();
+        }
+        return mThemeManager;
     }
     
     

Modified: incubator/roller/trunk/src/org/roller/model/Roller.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/model/Roller.java?rev=209351&r1=209350&r2=209351&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/model/Roller.java (original)
+++ incubator/roller/trunk/src/org/roller/model/Roller.java Tue Jul  5 16:34:38 2005
@@ -86,11 +86,15 @@
     public IndexManager getIndexManager() throws RollerException;
     
     /**
-     * Get PlanetManager associated with the Roller instance.
+     * Get PlanetManager associated with this Roller instance.
      */
     public PlanetManager getPlanetManager() throws RollerException;
 
-        
+    /**
+     * Get ThemeManager associated with this Roller instance.
+     */
+    public ThemeManager getThemeManager() throws RollerException;
+    
     /** Begin transaction for a thread.
      */ 
     public void begin() throws RollerException;