@Inject always creating new object

2009-06-18 Thread Matt
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 constructor for that object instead of injectin

Enhancer.getMethods()

2009-06-18 Thread thach
I'm trying to write a profiler that basically intercepts a method, do a timing around it before executing it. As I was walking through the code, the line Enhancer.getMethods(declaringClass, null, methods); in ProxyFactory returns a List of _public_ methods. What about non- public methods? Th

STARTING A WRITING CAREER OR HOW I S...STARTING A WRITING CAREER OR HOW I S...STARTING A WRITING CAREER OR HOW I S...

2009-06-18 Thread Lara Zinn
STARTING A WRITING CAREER OR HOW I S...STARTING A WRITING CAREER OR HOW I S...STARTING A WRITING CAREER OR HOW I S... http://copywriting123.50webs.com/starting-a-writing-career-or-how-i-s.html http://copywriting123.50webs.com/starting-a-writing-career-or-how-i-s.html http://copywriting123.50web

Re: Generating a class with annotations

2009-06-18 Thread Jim Andreou
Thanks Johan (as well as all the other helpful mailing list members) for the suggestion. I already tried Javassist, but it doesn't support annotations. It handled any method declaration I threw at it, but if I added a (fully qualified) annotation, it was failing. (Currently I'm using a similar appr

Re: Generating a class with annotations

2009-06-18 Thread Johan Haleby
You could try out Javassist, it's easy and capable of many things and you basically don't have to know anything about byte-code to use it. /Johan Jim Andreou wrote: > Thanks for your suggestion. I see JCatapult's scope is far wider than > a bytecode manipulation framework. Could you give me a

Re: Generating a class with annotations

2009-06-18 Thread Jim Andreou
Thanks for the suggestion! That's quite close, since it indeed creates annotated classes/methods. Although I don't find a way to put method bodies/callbacks (it seems it only creates empty or abstract methods). Regards, Dimitris 2009/6/18 Rodrigo Couto > > You might want to try ClassMock: http:

Re: Generating a class with annotations

2009-06-18 Thread Rodrigo Couto
You might want to try ClassMock: http://classmock.sourceforge.net/ -- Rodrigo Couto On Jun 17, 5:44 pm, Jim Andreou wrote: > Thanks for your suggestion. I see JCatapult's scope is far wider than a > bytecode manipulation framework. Could you give me a more precise pointer > regarding what part