1x-pyd-source: applicationContext-pricing.xml:14-38
2beans:
3 pricingService:
4 class: com.example.pricing.PricingServiceImpl
5 injects: [rateDao]
6 properties:
7 maxDiscountPct:
8 key: pricing.maxDiscount
9 default: 15
10 values: { prod: 12, uat: 20, dev: "default (15)" }
11effectiveBehavior:
12 PricingServiceImpl.getQuote:
13 transaction: { propagation: REQUIRED, readOnly: true }
14 advice: [txAdvice, loyaltyAspect.applyLoyaltyDiscount]
15 PricingServiceImpl.applyPrice:
16 transaction:
17 propagation: REQUIRED
18 rollbackFor: [PricingException, RuntimeException, Error]
19 advice: [txAdvice, loyaltyAspect.applyLoyaltyDiscount]
20rulesInAdvice:
21 - id: PRC-LOYAL-04
22 source: LoyaltyAspect.java:31-47
23 rule: "price * (1 - tierDiscount), discount capped at maxDiscountPct"
24 scope: "every *Service method under com.example.pricing"