Package org.yaac.client.conf

Source Code of org.yaac.client.conf.YaacPlaceControllerProvider

package org.yaac.client.conf;

import javax.inject.Inject;
import javax.inject.Provider;

import com.google.gwt.place.shared.PlaceController;
import com.google.web.bindery.event.shared.EventBus;

/**
* @author Max Zhu (thebbsky@gmail.com)
*
*/
public class YaacPlaceControllerProvider implements Provider<PlaceController> {

  private final EventBus eventBus;
 
  /**
   * @param eventBus
   */
  @Inject
  YaacPlaceControllerProvider(EventBus eventBus) {
    super();
    this.eventBus = eventBus;
  }

  @Override
  public PlaceController get() {
    return new PlaceController(eventBus);
  }
}
TOP

Related Classes of org.yaac.client.conf.YaacPlaceControllerProvider

TOP
Copyright © 2018 www.massapi.com. 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.