That would be nice!

Stefan

On Thursday, January 31, 2013 9:39:02 AM UTC+1, LexX wrote:
>
> Hi Sam,
>
> Do you have any plans to release trunk version of Guice? Simply 3.1.0 with 
> all committed bugfixes/features since March of 2011 J
>
>  
>
> Best regards,
>
> Alexey
>
>  
>
>  
>
>  
>
> *From:* [email protected] <javascript:> [mailto:
> [email protected] <javascript:>] *On Behalf Of *Sam Berlin
> *Sent:* Thursday, January 31, 2013 4:33 AM
> *To:* [email protected] <javascript:>
> *Subject:* Re: Bind an interceptor to a factory created with 
> FactoryModuleBuilder (AssistedInject)
>
>  
>
> Aha.
>
>  
>
> With the latest HEAD code, you should be able to use ProvisionListener to 
> intercept the creation of the assisted objects.  You may be able to use 
> TypeListener also.
>
>  
>
>  sam
>
>  
>
> On Wed, Jan 30, 2013 at 2:26 AM, Stefan Liebig 
> <[email protected]<javascript:>> 
> wrote:
>
> Because I want to intercept the newly created objects to perform various 
> tasks that I do not want to implement into the factory.
>
>  
>
> Stefan
>
>
>
> On Saturday, January 26, 2013 12:51:06 AM UTC+1, Sam Berlin wrote:
>
> First question: why?
>
> sam
>
> On Jan 25, 2013 11:29 AM, "Stefan Liebig" <[email protected]> wrote:
>
> I would like to intercept the "generated" methods of a factory created 
> with the FactoryModuleBuilder.
>
> I tried several variations of this:
>
>  
>
> install( new FactoryModuleBuilder().implement( INode.class, RealNode.class 
> ).build( IRealNodeFactory.class ) );
>
> final RealNodeCreationHook realNodeCreationHook = new 
> RealNodeCreationHook();
>
> requestInjection( realNodeCreationHook );
>
> bindInterceptor( subclassesOf( IRealNodeFactory.class ), Matchers.any(), 
> realNodeCreationHook );
>
>  
>
> But I had no success. Any idea besides writing the factory manually?
>
>  
>
> Stefan
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "google-guice" group.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
>
>
> Visit this group at http://groups.google.com/group/google-guice?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "google-guice" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
>
>
> To post to this group, send email to [email protected]<javascript:>
> .
>
> Visit this group at http://groups.google.com/group/google-guice?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>  
>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "google-guice" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] <javascript:>.
> To post to this group, send email to [email protected]<javascript:>
> .
> Visit this group at http://groups.google.com/group/google-guice?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to