Hello everyone,

 Am new to Google guice. I have the following scenario.

   Class A {
       String version ;
           method_ A(){
               //some impl
               do(); }

            do{ //some impl
               sample(); }

            sample { return "sample" ;}
}
 
I have an attribute version and a method "method_A" which calls do () which 
in turn calls sample().Based on the value of version the implementation of  
the methods changes.
For example if the version value is "A" the sample should return "A" 
instead of "sample".If the version value is "B", the do method  shouldnt 
call sample method.
Is there a possibility to achieve this by method injection in google guice 
where in at runtime, the methods gets redirected to different method 
implementation based on version value.

Can the overriding methods be written in the same class for different 
version values ? Please help with your guidelines

-- 
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