From: David ‘Bombe’ Roden Date: Wed, 18 Apr 2012 21:46:24 +0000 (+0200) Subject: Store and expose the core. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=7086f496546e7569b23146a9bcd5b2c5a0ad1396;p=demoscenemusic.git Store and expose the core. --- diff --git a/src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java b/src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java index 988fee7..2e5462a 100644 --- a/src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java +++ b/src/main/java/net/pterodactylus/demoscenemusic/page/BasePage.java @@ -29,6 +29,8 @@ import net.pterodactylus.util.web.TemplatePage; */ public class BasePage extends TemplatePage { + private final Core core; + /** * @param path * @param contentType @@ -37,7 +39,14 @@ public class BasePage extends TemplatePage { */ 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; + } +}