From 7086f496546e7569b23146a9bcd5b2c5a0ad1396 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 18 Apr 2012 23:46:24 +0200 Subject: [PATCH] Store and expose the core. --- .../java/net/pterodactylus/demoscenemusic/page/BasePage.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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; + } +} -- 2.7.4