diff --git a/bellatrix.web/src/main/java/solutions/bellatrix/web/pages/WebPage.java b/bellatrix.web/src/main/java/solutions/bellatrix/web/pages/WebPage.java index 593c94c2..5b1a12bc 100644 --- a/bellatrix.web/src/main/java/solutions/bellatrix/web/pages/WebPage.java +++ b/bellatrix.web/src/main/java/solutions/bellatrix/web/pages/WebPage.java @@ -24,15 +24,15 @@ public abstract class WebPage> { public BrowserService browser() { - return new BrowserService(); + return app().browser(); } - public JavaScriptService javaScript() { - return new JavaScriptService(); + public ComponentCreateService create() { + return app().create(); } - public ComponentCreateService create() { - return new ComponentCreateService(); + public JavaScriptService javaScript() { + return app().script(); } public App app() { diff --git a/bellatrix.web/src/main/java/solutions/bellatrix/web/pages/WebSection.java b/bellatrix.web/src/main/java/solutions/bellatrix/web/pages/WebSection.java index 370eda65..0cdd9b2d 100644 --- a/bellatrix.web/src/main/java/solutions/bellatrix/web/pages/WebSection.java +++ b/bellatrix.web/src/main/java/solutions/bellatrix/web/pages/WebSection.java @@ -13,18 +13,28 @@ package solutions.bellatrix.web.pages; +import solutions.bellatrix.web.services.App; import solutions.bellatrix.web.services.BrowserService; import solutions.bellatrix.web.services.ComponentCreateService; +import solutions.bellatrix.web.services.JavaScriptService; import java.lang.reflect.ParameterizedType; public abstract class WebSection> { public BrowserService browser() { - return new BrowserService(); + return app().browser(); } public ComponentCreateService create() { - return new ComponentCreateService(); + return app().create(); + } + + public JavaScriptService javaScript() { + return app().script(); + } + + public App app() { + return new App(); } public MapT map() {