All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.opentripplanner.street.service.StreetLimitationParametersServiceModule Maven / Gradle / Ivy

The newest version!
package org.opentripplanner.street.service;

import dagger.Module;
import dagger.Provides;
import jakarta.inject.Singleton;
import org.opentripplanner.street.model.StreetLimitationParameters;

/**
 * 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 StreetLimitationParametersServiceModule {

  @Provides
  @Singleton
  public StreetLimitationParametersService provideStreetLimitationParametersService(
    StreetLimitationParameters streetLimitationParameters
  ) {
    return new DefaultStreetLimitationParametersService(streetLimitationParameters) {};
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy