se.citerus.dddsample.infrastructure.routing
Class ExternalRoutingService

java.lang.Object
  extended by 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.


Constructor Summary
ExternalRoutingService()
           
 
Method Summary
 java.util.List<Itinerary> fetchRoutesForSpecification(RouteSpecification routeSpecification)
           
 void setGraphTraversalService(GraphTraversalService graphTraversalService)
           
 void setLocationRepository(LocationRepository locationRepository)
           
 void setVoyageRepository(VoyageRepository voyageRepository)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExternalRoutingService

public ExternalRoutingService()
Method Detail

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.