@Component class RouteChangedEventPublisher extends Object
RouteChangedEvent and publishes it so that it can be processed by other
components that listen for this type of event.| Constructor and Description |
|---|
RouteChangedEventPublisher(org.springframework.context.ApplicationEventPublisher eventPublisher) |
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
publishSolution(VehicleRoutingSolution solution)
Publish solution as a
RouteChangedEvent. |
(package private) static RouteChangedEvent |
solutionToEvent(VehicleRoutingSolution solution,
Object source)
Convert a planning domain solution to an event that can be published.
|
@Autowired RouteChangedEventPublisher(org.springframework.context.ApplicationEventPublisher eventPublisher)
void publishSolution(VehicleRoutingSolution solution)
RouteChangedEvent.solution - solutionstatic RouteChangedEvent solutionToEvent(VehicleRoutingSolution solution, Object source)
solution - solutionsource - source of the eventCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.