/* * Copyright 2012 Axel Winkler, Daniel Dunér * * This file is part of Daxplore Presenter. * * Daxplore Presenter is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 2.1 of the License, or * (at your option) any later version. * * Daxplore Presenter is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with Daxplore Presenter. If not, see <http://www.gnu.org/licenses/>. */ package org.daxplore.presenter.client.inject; import org.daxplore.presenter.client.PresentationEntryPoint; import org.daxplore.presenter.client.Presenter; import org.daxplore.presenter.client.ui.StagePanel; import com.google.gwt.inject.client.GinModules; import com.google.gwt.inject.client.Ginjector; /** * An interface that give access to specific classes that have been instantiated * by the injection system. * * <p>This should only be used from the {@link PresentationEntryPoint} to get * the few first classes.</p> * * <p>The injection system will automatically supply the classes with all the * injection-input they need to be instantiated. This allows constructors to be * injected with a large number of arguments without adding any complexity.</p> * * <p>See the <a href=https://code.google.com/p/google-gin/>Google Gin * website</a> for more information and motivation.</p> */ @GinModules(PresentationModule.class) public interface PresentationInjector extends Ginjector { Presenter getPresenter(); StagePanel getStagePanel(); }