I am looking at the assisted inject extension, and
while it is nice, it would be nicer to be able to use
the feature without doing code in a module.

For example, by using
an annotation in a similar fashion to @ImplementedBy,

For example:

public class IfAlarm {
   @Inject IfAlarm(
      AlarmService alarmService,
      @Assisted IfAlarmConfig alarmConfig) {}

    @FactoryFor(IfAlarm.class) public interface Factory {
        IfAlarm create(IfAlarmConfig config);
    }
}


and use:

@Inject IfAlarm.Factory  alarmFactory;

.
.
   IfAlarm alarm = alarmFactory.create(config);


Not too sure how difficult this would be to implement,
but it would be nice to have.

Peter

-- 
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" 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-dev.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to