Store and expose the core.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 21:46:24 +0000 (23:46 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 18 Apr 2012 21:46:24 +0000 (23:46 +0200)
src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java

index 988fee7..2e5462a 100644 (file)
@@ -29,6 +29,8 @@ import net.pterodactylus.util.web.TemplatePage;
  */
 public class BasePage extends TemplatePage<ServletRequest> {
 
+       private final Core core;
+
        /**
         * @param path
         * @param contentType
@@ -37,7 +39,14 @@ public class BasePage extends TemplatePage<ServletRequest> {
         */
        public BasePage(Core core, TemplateContextFactory templateContextFactory, Template template, String pageName) {
                super(pageName, "text/html", templateContextFactory, template);
+               this.core = core;
        }
 
-}
+       /**
+        * @return the core
+        */
+       public Core getCore() {
+               return core;
+       }
 
+}