pombreda / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 1 forks source link

Construction interceptors #203

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The elevator pitch - give classes a hook to introspect a type at injector 
creation time. Then 
whenever an instance of that type is instantiated, the classes get a callback. 
This can be used to 
implement arbitrary APIs (such as EJB) on top of Guice.

Original issue reported on code.google.com by limpbizkit on 5 Jun 2008 at 7:48

GoogleCodeExporter commented 9 years ago
Construction interception sounds similar to Provider interception mentioned in 
issue
#62. Where exactly is the difference or benefit?

Original comment by sven.lin...@gmail.com on 5 Jun 2008 at 2:11

GoogleCodeExporter commented 9 years ago
You're right - this is similar to Provision interception. The benefit is that 
you can add arbitrary, general behaviour 
at object creation time just like what bindInterceptor does at method 
invocation time.

Original comment by limpbizkit on 6 Jun 2008 at 4:01

GoogleCodeExporter commented 9 years ago
Dupe of 78.

Original comment by limpbizkit on 6 Jun 2008 at 4:14