/*
* 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.embed.inject;
import org.daxplore.presenter.chart.display.ChartFactory;
import org.daxplore.presenter.chart.display.QueryActiveAnimation;
import org.daxplore.presenter.embed.EmbedEntryPoint;
import org.daxplore.presenter.shared.QuestionMetadata;
import com.google.gwt.inject.client.GinModules;
import com.google.gwt.inject.client.Ginjector;
import com.google.web.bindery.event.shared.EventBus;
/**
* 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 EmbedEntryPoint} 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(EmbedModule.class)
public interface EmbedInjector extends Ginjector {
EventBus getEventBus();
ChartFactory getChartFactory();
QuestionMetadata getQuestions();
QueryActiveAnimation getQueryActiveAnimation();
}