[picocontainer-dev] Interception (behavior factory) and Intercepted (behavior)
Paul Hammant <[email protected]>
| Newsgroups | gmane.comp.java.picocontainer.devel |
|---|---|
| Message-ID | <[email protected]> |
Added 15 mins ago. Pre & Post interception You can intercept a method call before it is invoked (and optionally veto its invocation, with an alternate return value). You have a call another interceptor after the method has been invoked (and optionally override the return value). Limitations Can only do this to interface/impl separated components. Will (likely) break if there's deep recursion into Intercepted components. Can't modify arguments being passed in to method. Can't paricipate in instantiation (no pre or post for Ctors). Can't play with or intercept fields on component. Thoughts? - Paul