@MatsMapping(idPrefix = "OrderService")
public PlacedOrderDto placeOrder(OrderDto order) { .. }
.. and get an endpoint Id'ed as "OrderService.placeOrder".
Could also let that @MatsMapping adorn the class with the prefixId set, and then you would not have to put any values on the @MatsMapping on the methods. @MatsMapping on class could also implicitly specify the Spring's @Service.
@MatsMapping(idPrefix = "OrderService")
public class OrderServiceMatsEndpoints {
@MatsMapping
public PlacedOrderDto placeOrder(OrderDto order) { .. }
@MatsMapping
public PlacedOrderDto cancelOrder(String orderId) { .. }
}
Might need to use something like @MatsMappingService to distinguish the two annotations..
Could be nice:
.. and get an endpoint Id'ed as "OrderService.placeOrder".
Could also let that
@MatsMapping
adorn the class with the prefixId set, and then you would not have to put any values on the@MatsMapping
on the methods.@MatsMapping
on class could also implicitly specify the Spring's@Service
.Might need to use something like
@MatsMappingService
to distinguish the two annotations..