
org.opentripplanner.ext.emissions.EmissionsServiceModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of otp Show documentation
Show all versions of otp Show documentation
The OpenTripPlanner multimodal journey planning system
The newest version!
package org.opentripplanner.ext.emissions;
import dagger.Module;
import dagger.Provides;
import jakarta.inject.Singleton;
/**
* The service is used during application serve phase, not loading, so we need to provide
* a module for the service without the repository, which is injected from the loading phase.
*/
@Module
public class EmissionsServiceModule {
@Provides
@Singleton
public EmissionsService provideEmissionsService(EmissionsDataModel emissionsDataModel) {
return new DefaultEmissionsService(emissionsDataModel);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy