Package com.google.gwt.inject.client.assistedinject

Examples of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder


  }
 
  static class ParentWithFactoryModule extends AbstractGinModule {
    @Override
    protected void configure() {
      install(new GinFactoryModuleBuilder().build(WidgetFactory.class));
    }
View Full Code Here


  }
 
  static class ChildWithFactoryModule extends PrivateGinModule {
    @Override
    protected void configure() {
      install(new GinFactoryModuleBuilder().build(WidgetFactory.class))
      expose(WidgetFactory.class);
    }
View Full Code Here

    bind(HiddenSingleton.class).asEagerSingleton();

    // Test binding a public class to a package-private provider.
    bind(PublicProvidedClass.class).toProvider(HiddenProvider.class);

    install(new GinFactoryModuleBuilder().build(HiddenAssisted.Factory.class));
    GinFactoryModuleBuilder builder = new GinFactoryModuleBuilder()
        .implement(PublicAssisted.class, Names.named("a"), PublicAssistedImplementation.class);
    SubSubPackageGinModule.implementB(builder);
    install(builder.build(PublicAssisted.Factory.class));
  }
View Full Code Here

      bind(WorkbenchMainView.class).to(WorkbenchScreen.class) ;

      bind(DocDisplay.class).to(AceEditor.class);
     
      install(new GinFactoryModuleBuilder()
         .implement(CompileOutputPaneDisplay.class, CompileOutputPane.class)
         .build(CompileOutputPaneFactory.class));
   }
View Full Code Here

import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;

public class CarsModule extends AbstractPresenterModule {
    @Override
    protected void configure() {
        install(new GinFactoryModuleBuilder().build(CarPresenterFactory.class));
        install(new GinFactoryModuleBuilder().build(CarProxyImplFactory.class));

        bindPresenter(RootCarPresenter.class, RootCarPresenter.MyView.class, RootCarView.class,
                RootCarPresenter.MyProxy.class);

        bindSingletonPresenterWidget(NavigationTabPresenter.class, NavigationTabPresenter.MyView.class,
View Full Code Here

import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;

public class RatingMobileModule extends AbstractPresenterModule {
    @Override
    protected void configure() {
        install(new GinFactoryModuleBuilder().build(RatingCellFactory.class));

        bindPresenter(RatingPresenter.class, RatingPresenter.MyView.class, RatingMobileView.class,
                RatingPresenter.MyProxy.class);

        bindPresenter(RatingDetailPresenter.class, RatingDetailPresenter.MyView.class, RatingDetailView.class,
View Full Code Here

import com.gwtplatform.mvp.client.gin.AbstractPresenterModule;

public class MessagesModule extends AbstractPresenterModule {
    @Override
    protected void configure() {
        install(new GinFactoryModuleBuilder().build(MessageWidgetFactory.class));

        bindSingletonPresenterWidget(MessagesPresenter.class, MessagesPresenter.MyView.class, MessagesView.class);
    }
View Full Code Here

   public static class Gin9Module extends AbstractGinModule {

      @Override
      protected void configure() {
         bind(Virtual.class).to(Impl2.class);
         install(new GinFactoryModuleBuilder().build(AssistedInjectFactory.class));
      }
View Full Code Here

public class EditorModule extends AbstractGinModule {
    @Override
    protected void configure() {
        install(new ComponentsModule());

        install(new GinFactoryModuleBuilder().build(EditorFactory.class));

        bind(OrderEditorPresenter.MyView.class).to(OrderEditor.class);
    }
View Full Code Here

TOP

Related Classes of com.google.gwt.inject.client.assistedinject.GinFactoryModuleBuilder

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.