Self-call 우회책은 결합도와 지원 join point가 다르다
annotation을 살리는 최소 변경보다 장기적으로 읽히는 responsibility boundary를 우선한다.
| 대안 | 장점 | 비용 |
|---|---|---|
| Bean 분리 | 명시적 경계 | object 증가 |
| TransactionTemplate | self 영향 없음 | programmatic 결합 |
| AopContext | 변경 작음 | thread-local·Spring 결합 |
annotation을 살리는 최소 변경보다 장기적으로 읽히는 responsibility boundary를 우선한다.
| 대안 | 장점 | 비용 |
|---|---|---|
| Bean 분리 | 명시적 경계 | object 증가 |
| TransactionTemplate | self 영향 없음 | programmatic 결합 |
| AopContext | 변경 작음 | thread-local·Spring 결합 |