se.citerus.dddsample.infrastructure.routing
Class ExternalRoutingService
java.lang.Object
se.citerus.dddsample.infrastructure.routing.ExternalRoutingService
- All Implemented Interfaces:
- RoutingService
public class ExternalRoutingService
- extends java.lang.Object
- implements RoutingService
Our end of the routing service. This is basically a data model
translation layer between our domain model and the API put forward
by the routing team, which operates in a different context from us.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExternalRoutingService
public ExternalRoutingService()
fetchRoutesForSpecification
public java.util.List<Itinerary> fetchRoutesForSpecification(RouteSpecification routeSpecification)
- Specified by:
fetchRoutesForSpecification
in interface RoutingService
- Parameters:
routeSpecification
- route specification
- Returns:
- A list of itineraries that satisfy the specification. May be an empty list if no route is found.
setGraphTraversalService
public void setGraphTraversalService(GraphTraversalService graphTraversalService)
setLocationRepository
public void setLocationRepository(LocationRepository locationRepository)
setVoyageRepository
public void setVoyageRepository(VoyageRepository voyageRepository)
Copyright © 2009. All Rights Reserved.