Created
January 11, 2018 17:23
-
-
Save romartin/82ca4d217d3200fb42044b7359d1f011 to your computer and use it in GitHub Desktop.
Revisions
-
romartin created this gist
Jan 11, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ public class FactoryTest { public interface Converter { public Object convert(); } @Dependent public class ConverterImpl implements Converter { private final FactoryManager factoryManager; @Inject public ConverterImpl(FactoryManager factoryManager) { this.factoryManager = factoryManager; } @Override public Object convert() { return null; } } private final Instance<Converter> converters; @Inject public FactoryTest(Instance<Converter> converters) { this.converters = converters; } public UserTaskConverter buildC1() { return converters. } }