commercetools / commercetools-paypal-plus-integration

Integration between commercetools API and PayPal Plus API
Apache License 2.0
7 stars 1 forks source link

Use @Resource for self reference in Spring caching #118

Closed andrii-kovalenko-ct closed 6 years ago

andrii-kovalenko-ct commented 6 years ago

Relative to #105:

It is known that Spring caching feature works over AOP thus calling cached methods from the same instance doesn't work like expected (not cached).

Though since Spring 4.3 it supports self-autowiring beans over @Resource annotation, thus SphereFactoryInternalCache could be omitted.