@Override protected void configure() { bind(NameFactory.class) .annotatedWith(Graphviz.class) .to(ShortNameFactory.class); bind(PortIdFactory.class) .annotatedWith(Graphviz.class) .to(PortIdFactoryImpl.class); }
@Inject GraphvizGrapher(@Graphviz NameFactory nameFactory, @Graphviz PortIdFactory portIdFactory) { this.nameFactory = nameFactory; this.portIdFactory = portIdFactory; }
@Override protected void configure() { bind(NameFactory.class).annotatedWith(Graphviz.class).to(ShortNameFactory.class); bind(PortIdFactory.class).annotatedWith(Graphviz.class).to(PortIdFactoryImpl.class); }
@Inject JsonGrapher(NameFactory nameFactory) { this.nameFactory = nameFactory; }
@Override protected void configure() { bind(NameFactory.class).to(ShortNameFactory.class); bind(PortIdFactory.class).to(PortIdFactoryImpl.class); }