[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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.