/** * @see Binder#currentStage() * @since 2.0 */ protected Stage currentStage() { return binder().currentStage(); }
@Override public Stage currentStage() { return binder.currentStage(); }
/** * @see Binder#currentStage() * @since 2.0 */ protected Stage currentStage() { return binder.currentStage(); }
/** * @see Binder#currentStage() * @since 2.0 */ protected Stage currentStage() { return binder.currentStage(); }
/** * @see Binder#currentStage() * @since 2.0 */ protected Stage currentStage() { return binder.currentStage(); }
@Override public Stage currentStage() { return binder.currentStage(); }
@Override public Stage currentStage() { return binder.currentStage(); }
@Override public Stage currentStage() { return binder.currentStage(); }
@Override public Stage currentStage() { return binder.currentStage(); }
/** * @see Binder#currentStage() */ protected Stage currentStage() { return binder().currentStage(); }
/** * @see Binder#currentStage() * @since 2.0 */ protected Stage currentStage() { return binder().currentStage(); }
/** * @see Binder#currentStage() * @since 2.0 */ protected Stage currentStage() { return binder().currentStage(); }
@Override default Stage currentStage() { return this.binder().currentStage(); }
@Override protected final void configure() { if (Stage.DEVELOPMENT.equals(binder().currentStage())) { bind(PageBook.class) .annotatedWith(Production.class) .to(DefaultPageBook.class); bind(RoutingDispatcher.class) .annotatedWith(Production.class) .to(WidgetRoutingDispatcher.class); } }
@Override protected final void configure() { if (Stage.DEVELOPMENT.equals(binder().currentStage())) { bind(PageBook.class) .annotatedWith(Production.class) .to(DefaultPageBook.class); bind(RoutingDispatcher.class) .annotatedWith(Production.class) .to(WidgetRoutingDispatcher.class); } }
@Override protected final void configure() { if (Stage.DEVELOPMENT.equals(binder().currentStage())) { bind(PageBook.class) .annotatedWith(Production.class) .to(DefaultPageBook.class); bind(RoutingDispatcher.class) .annotatedWith(Production.class) .to(WidgetRoutingDispatcher.class); } }
StageTypeKey stageTypeKey = new StageTypeKey(binder.currentStage(), key); if (this.bound.get(stageTypeKey) == null) {
@Override protected void configure() { //set up MVEL namespace (when jarjar-ed, it will use the repackaged namespace) System.setProperty("mvel.namespace", MVEL.class.getPackage().getName().replace('.', '/') + "/"); // Bind default content negotiation annotations // install(new ConnegModule()); TODO(dhanji): Fix this--we have to make SitebricksModule multi-installable //initialize startup services and routing modules install(PageBook.Routing.module()); //development mode services if (Stage.DEVELOPMENT.equals(binder().currentStage())) { bind(PageBook.class).to(DebugModePageBook.class); bind(RoutingDispatcher.class).to(DebugModeRoutingDispatcher.class); } bind(new TypeLiteral<RequestBinder>(){}).to(MvelRequestBinder.class).asEagerSingleton(); // use sitebricks converters in mvel requestInjection(new MvelConversionHandlers()); }
@Override protected void configure() { //set up MVEL namespace (when jarjar-ed, it will use the repackaged namespace) System.setProperty("mvel.namespace", MVEL.class.getPackage().getName().replace('.', '/') + "/"); // Bind default content negotiation annotations // install(new ConnegModule()); TODO(dhanji): Fix this--we have to make SitebricksModule multi-installable //initialize startup services and routing modules install(PageBook.Routing.module()); //development mode services if (Stage.DEVELOPMENT.equals(binder().currentStage())) { bind(PageBook.class).to(DebugModePageBook.class); bind(RoutingDispatcher.class).to(DebugModeRoutingDispatcher.class); } // use sitebricks converters in mvel requestInjection(new MvelConversionHandlers()); }
@Override protected void configure() { //set up MVEL namespace (when jarjar-ed, it will use the repackaged namespace) System.setProperty("mvel.namespace", MVEL.class.getPackage().getName().replace('.', '/') + "/"); // Bind default content negotiation annotations // install(new ConnegModule()); TODO(dhanji): Fix this--we have to make SitebricksModule multi-installable //initialize startup services and routing modules install(PageBook.Routing.module()); //development mode services if (Stage.DEVELOPMENT.equals(binder().currentStage())) { bind(PageBook.class).to(DebugModePageBook.class); bind(RoutingDispatcher.class).to(DebugModeRoutingDispatcher.class); } bind(new TypeLiteral<RequestBinder>(){}).to(MvelRequestBinder.class).asEagerSingleton(); // use sitebricks converters in mvel requestInjection(new MvelConversionHandlers()); }