Hi there,

   I searched the mail list for this but I have not found anything yet 
(only stuff from '07).

I want to learn more about parameter injection. I have added member 
injector using the 
TypeListener method. But I need to have those annotation support available 
for parameter
injection as well.

I looked into the code but I did not found any support for it. I found this 
ConstructorInjector
and related classes but they are not meant to be subclassed or referenced.

What I have is something like:

class MyClass {
    
     @Parameter @Required
     String field;
}

The parameter annotation is supported using a custom MemberInjector.

Now I want to add this annotation to be supported by the parameter 
injection during 
constructor invocation and method invocation like:

public void setup(@Parameter(Parameters.NAME) @Required parameter) {...}

How can I add support for this?


Also I would like to know if there is out of the box support for something 
like:

injector.invoke(target, (Method)method); //where method also have such 
@Parameter 
annotation.


Thanks for your time,

Martin (Kersten),
Germany

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to