Closed thekid closed 5 years ago
Requires xp-framework/core@1d09cc1
Included in XP 6.0.0 Beta 1
Currently only Methods::$ALL
is supported as a selection, we should add matchers like annotatedWith()
and more like Guice does or get some ideas from Spring.
This pull request adds AOP possibilities to injection:
The log contains
inject.aop.MethodInvocation
instances after the invocation.Usecases
e.g. by subclassing
Bindings
and adding "syntax" which would read$this->bind('users')->toService('http://...')->withProfiling()
and bindRestClient
instances by the given name.