Re: Enhancer.getMethods()

2009-06-19 Thread Alen Vrecko
You can intercept all but not private methods with cglib. The reason is that private methods are non-virtual. You should note that your times will be polluted with your interceptor overhead. Afaik most of the profiles use java.lang.instrument and jvmti to get the job done. But that is another

Re: @Inject always creating new object

2009-06-19 Thread jordi
hey there, you should define a @Singleton scope for you object. Guice by default creates a new object every time you request that object, that's called no scope. You could place the @Singleton annotation directly on MyObject class at type level, or in your TestModule bind the scope to your

Re: @Inject always creating new object

2009-06-19 Thread Stuart McCulloch
2009/6/19 Matt mter...@gmail.com I'm new to Guice, and I'm using injection within an interceptor, with requestInjection() in my module. The interceptor is being called just fine, so my module appears to be good. The problem is that @Inject is always creating a new object using the

G2 Struts 2 plugin exception

2009-06-19 Thread Greg Lindholm
I've started getting this exception from the Struts 2 plugin when I shutdown Tomcat from withing Eclipse. It's annoying as sometime it hangs up Eclipse in the stopping Tomcat task and I can't start any other tasks and have to restart Eclipse. Anyone have any ideas? Guice 2.0, Struts 2.1.6,

Re: G2 Struts 2 plugin exception

2009-06-19 Thread Greg Lindholm
I did a little debugging and found that this is pretty repeatable. It occurs if Tomcat is started then Stopped without any Guice activity happening. The 'delegate' member of com.google.inject.struts2.GuiceObjectFactory.ProvidedInterceptor gets created by the inject() method. If inject() is never

Comment on branch /branches/2.0-maven in google-guice

2009-06-19 Thread codesite-noreply
gpampara commented on branch /branches/2.0-maven in project google-guice. Details are at http://code.google.com/p/google-guice/source/branch?spec=issue393branch=%2Fbranches%2F2.0-maven Score: Positive General Comment: @dhanji good stuff :) Respond to these comments at

Comment on AOP in google-guice

2009-06-19 Thread codesite-noreply
Comment by limpbizkit: My favourite use of AOP in practice is Warp Persist. Its [http://code.google.com/p/warp-persist/source/browse/trunk/warp-persist/src/com/wideplay/warp/persist/jpa/JpaLocalTxnInterceptor.java interceptor] makes it easy to make JPA or Hibernate methods

[google-guice commit] r1019 - Edited wiki page through web user interface.

2009-06-19 Thread codesite-noreply
Author: limpbizkit Date: Fri Jun 19 01:07:18 2009 New Revision: 1019 Modified: wiki/TableOfContents.wiki Log: Edited wiki page through web user interface. Modified: wiki/TableOfContents.wiki == ---

[google-guice commit] r1018 - Edited wiki page through web user interface.

2009-06-19 Thread codesite-noreply
Author: limpbizkit Date: Fri Jun 19 01:04:42 2009 New Revision: 1018 Modified: wiki/AOP.wiki Log: Edited wiki page through web user interface. Modified: wiki/AOP.wiki == --- wiki/AOP.wiki (original) +++

[google-guice commit] r1021 - Edited wiki page through web user interface.

2009-06-19 Thread codesite-noreply
Author: limpbizkit Date: Fri Jun 19 09:05:17 2009 New Revision: 1021 Modified: wiki/AOP.wiki Log: Edited wiki page through web user interface. Modified: wiki/AOP.wiki == --- wiki/AOP.wiki (original) +++

Comment on 3rdPartyModules in google-guice

2009-06-19 Thread codesite-noreply
Comment by hofmanndavid: JBoss Microcontainer link is broken For more information: http://code.google.com/p/google-guice/wiki/3rdPartyModules --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups google-guice-dev

Issue 394 in google-guice: Make ServletScopes.REQUEST fully-featured

2009-06-19 Thread codesite-noreply
Status: Accepted Owner: limpbizkit CC: isaac.q.shum, chris.nokleberg, dhanji Labels: Milestone-Release2.1 New issue 394 by limpbizkit: Make ServletScopes.REQUEST fully-featured http://code.google.com/p/google-guice/issues/detail?id=394 So that it can be entered and exited for other purposes.