The simple way to do it would be to bind the class to two different keys: one which gets intercepted and one that doesn't.
Dhanji. On Wed, Sep 22, 2010 at 7:37 AM, Andrei Pozolotin < [email protected]> wrote: > Hello; > > SITUATOIN: > > when I use guice aop interceptor for a class: > > class Base { void call() {} } > > the guice aop will use cglib to produce a proxy derived class, such > as: > > class Base&&EnhancerByGuice$$12345678 extends Base { void call() {} } > > PROBLEM: > > how can I call original Base.call() method and NOT EnhancerByGuice? > > in the spirit of invokeSuper(): > > http://cglib.sourceforge.net/apidocs/net/sf/cglib/MethodProxy.html#invokeSuper%28java.lang.Object,%20java.lang.Object[]%29 > > Thank you; > > Andrei > > -- > 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]<google-guice%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-guice?hl=en. > > -- 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]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
