From b56027074a605c4b520e1f2c61046f46e610618d Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Oct 2010 08:13:49 +0200 Subject: [PATCH] Expose the core. --- src/main/java/net/pterodactylus/sone/web/WebInterface.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/net/pterodactylus/sone/web/WebInterface.java b/src/main/java/net/pterodactylus/sone/web/WebInterface.java index 774fe7a..70f4b92 100644 --- a/src/main/java/net/pterodactylus/sone/web/WebInterface.java +++ b/src/main/java/net/pterodactylus/sone/web/WebInterface.java @@ -28,6 +28,7 @@ import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; +import net.pterodactylus.sone.core.Core; import net.pterodactylus.sone.main.SonePlugin; import net.pterodactylus.sone.web.page.CSSPage; import net.pterodactylus.sone.web.page.PageToadlet; @@ -74,6 +75,15 @@ public class WebInterface extends AbstractService { // /** + * Returns the Sone core used by the Sone plugin. + * + * @return The Sone core + */ + public Core core() { + return sonePlugin.core(); + } + + /** * Returns the l10n helper of the node. * * @return The node’s l10n helper -- 2.7.4