From: David ‘Bombe’ Roden Date: Wed, 13 Oct 2010 06:13:49 +0000 (+0200) Subject: Expose the core. X-Git-Tag: 0.1-RC1~509 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=b56027074a605c4b520e1f2c61046f46e610618d Expose the core. --- 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