List of usage examples for com.google.gwt.inject.client.assistedinject GinFactoryModuleBuilder GinFactoryModuleBuilder
GinFactoryModuleBuilder
From source file:com.adamantium.company.gwtp.client.application.details.ui.UiModule.java
License:Apache License
@Override protected void configure() { // Singleton binders bind(LinkMenu.Binder.class).in(Singleton.class); bind(RoundTabPanel.Binder.class).in(Singleton.class); bind(SimpleTabPanel.Binder.class).in(Singleton.class); install(new GinFactoryModuleBuilder().build(TabFactory.class)); }
From source file:com.arcbees.beestore.client.application.widget.sidepanel.cart.ShoppingCartModule.java
License:Apache License
@Override protected void configure() { install(new GinFactoryModuleBuilder().build(CartItemFactory.class)); install(new CartItemModule()); install(new CartItemsModule()); bindSingletonPresenterWidget(ShoppingCartPresenter.class, ShoppingCartPresenter.MyView.class, ShoppingCartView.class); }
From source file:com.arcbees.beestore.client.application.widget.WidgetModule.java
License:Apache License
@Override protected void configure() { bind(PricePresenter.MyView.class).to(PriceView.class); bind(ProductPresenter.MyView.class).to(ProductView.class); install(new SidePanelModule()); install(new GinFactoryModuleBuilder().build(PriceWidgetFactory.class)); install(new GinFactoryModuleBuilder().build(ProductWidgetFactory.class)); requestStaticInjection(Slider.class); }
From source file:com.arcbees.bourseje.client.admin.dashboard.candidate.CandidateAdminModule.java
License:Apache License
@Override protected void configure() { install(new GinFactoryModuleBuilder().build(CandidateAdminPresenterFactory.class)); bind(CandidateAdminPresenter.MyView.class).to(CandidateAdminView.class); }
From source file:com.arcbees.bourseje.client.application.vote.candidate.CandidateVoteModule.java
License:Apache License
@Override protected void configure() { install(new GinFactoryModuleBuilder().build(CandidateVoteFactory.class)); bind(CandidateVotePresenter.MyView.class).to(CandidateVoteView.class); }
From source file:com.ciplogic.web.codeeditor.gin.config.VisualEditorModule.java
License:Open Source License
@Override protected void configure() { bind(VisualEditorFactory.class).to(TinyMceFactory.class).in(Singleton.class); GinModule tinyMceAssistedFactory = new GinFactoryModuleBuilder().build(TinyMceAssistedFactory.class); install(tinyMceAssistedFactory);/* w w w . ja v a 2s . co m*/ }
From source file:com.ciplogic.web.codeeditor.gin.DialogModule.java
License:Open Source License
@Override protected void configure() { GinModule codeEditorDialogFactory = new GinFactoryModuleBuilder().build(CodeEditorDialogFactory.class); install(codeEditorDialogFactory);/* w w w .j a va 2 s . c o m*/ }
From source file:com.codenvy.editor.client.inject.GinModule.java
License:Apache License
/** {@inheritDoc} */ @Override protected void configure() { install(new GinFactoryModuleBuilder().build(EditorFactory.class)); }
From source file:com.codenvy.ide.client.inject.GinModule.java
License:Open Source License
/** {@inheritDoc} */ @Override/*from w ww .ja v a 2 s .co m*/ protected void configure() { install(new GinFactoryModuleBuilder().implement(ElementView.class, ElementViewImpl.class) .implement(BranchView.class, BranchViewImpl.class).build(ElementWidgetFactory.class)); install(new GinFactoryModuleBuilder().implement(ToolbarGroupView.class, ToolbarGroupViewImpl.class) .implement(ToolbarItemView.class, ToolbarItemViewImpl.class).build(ToolbarFactory.class)); install(new GinFactoryModuleBuilder().implement(PropertyGroupView.class, PropertyGroupViewImpl.class) .build(PropertiesGroupFactory.class)); GinMultibinder<Initializer> initializers = GinMultibinder.newSetBinder(binder(), Initializer.class); configurePropertiesPanels(initializers); configurePropertyTypes(initializers); configureValidators(initializers); configureCreators(initializers); configureToolbar(initializers); /* * TODO: this configuration was copied from CoreGinModule from ide-core project. It is important because this gin module is * separated from IDE injection circle. In order to update version of IDE one has to review this configuration and * synchronize it. */ bind(MessageDialogView.class).to(MessageDialogViewImpl.class); bind(ConfirmDialogView.class).to(ConfirmDialogViewImpl.class); bind(InputDialogView.class).to(InputDialogViewImpl.class); install(new GinFactoryModuleBuilder().implement(MessageDialog.class, MessageDialogPresenter.class) .implement(ConfirmDialog.class, ConfirmDialogPresenter.class) .implement(InputDialog.class, InputDialogPresenter.class).build(DialogFactory.class)); }
From source file:com.codenvy.ide.ext.wso2.client.inject.GinModule.java
License:Open Source License
/** {@inheritDoc} */ @Override/* www . j av a 2 s . c om*/ protected void configure() { install(new GinFactoryModuleBuilder().implement(GraphicEditorView.class, GraphicEditorViewImpl.class) .build(EditorViewFactory.class)); }