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
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
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
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,
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
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 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
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
==
---
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)
+++
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 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
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.
12 matches
Mail list logo