|Re: [aspectj-users] The constructor DeprecatedMethodLogger() is not visible when testing my aspect|
Typically you donât instantiate aspects like that, their lifecycle is managed more internally to the aspect and can vary depending on the per-scope. (The default scope being singleton)
If you want an instance of an aspect, youâd call:
and this will give you the singleton instance for your aspect.