Add ProcessingGroup annotation to OrderedProductsEventHandler

Add the ProcessingGroup annotation to OrderedProductsEventHandler so
 that this event handler is grouped in a nicely named Event Processor.
If the app is started in conjunction with Axon Server, this will make
 the set up more evident from the dashboard

BAEL-2435
This commit is contained in:
Steven van Beelen 2019-07-10 13:37:28 +02:00
parent 97ab713024
commit 496c2b1737
2 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.axonframework.config.ProcessingGroup;
import org.axonframework.eventhandling.EventHandler;
import org.axonframework.queryhandling.QueryHandler;
import org.springframework.stereotype.Service;
@ -16,6 +17,7 @@ import com.baeldung.axon.coreapi.queries.FindAllOrderedProductsQuery;
import com.baeldung.axon.coreapi.queries.OrderedProduct;
@Service
@ProcessingGroup("ordered-products")
public class OrderedProductsEventHandler {
private final Map<String, OrderedProduct> orderedProducts = new HashMap<>();

View File

@ -0,0 +1 @@
spring.application.name=Order Management Service