use of com.oracle.coherence.spring.annotation.PropertyExtractor in project coherence-spring by coherence-community.
the class EventHandler method onOrderWithMultiplePropertyExtractors.
// end::on-order-with-property-extractor[]
// tag::on-order-with-multiple-property-extractors[]
@CoherenceEventListener
// <1>
@PropertyExtractor("customerId")
@PropertyExtractor("orderId")
public void onOrderWithMultiplePropertyExtractors(// <2>
@Inserted @MapName("orders") MapEvent<String, List<Object>> event) {
// <3>
List list = event.getNewValue();
// <4>
String customerId = (String) list.get(0);
Long orderId = (Long) list.get(1);
// ...
}
Aggregations