@Test public void compilationUnitWithCDI() { final ApplicationContainerGenerator appGenerator = new ApplicationContainerGenerator(PACKAGE_NAME); appGenerator.withDependencyInjection(new CDIDependencyInjectionAnnotator()); assertCompilationUnit(appGenerator.getCompilationUnitOrThrow(), true); }
public ApplicationGenerator withDependencyInjection(DependencyInjectionAnnotator annotator) { this.annotator = annotator; this.applicationMainGenerator.withDependencyInjection(annotator); this.configGenerator.withDependencyInjection(annotator); return this; }
ApplicationGenerator { public ApplicationGenerator withDependencyInjection(DependencyInjectionAnnotator annotator) { this.annotator = annotator; this.applicationMainGenerator.withDependencyInjection(annotator); this.configGenerator.withDependencyInjection(annotator); return this; } }
ApplicationGenerator { public ApplicationGenerator withDependencyInjection(DependencyInjectionAnnotator annotator) { this.annotator = annotator; this.applicationMainGenerator.withDependencyInjection(annotator); this.configGenerator.withDependencyInjection(annotator); return this; } ApplicationGenerator(String packageName, File targetDirectory); }
ApplicationGenerator { public ApplicationGenerator withDependencyInjection(DependencyInjectionAnnotator annotator) { this.annotator = annotator; this.applicationMainGenerator.withDependencyInjection(annotator); this.configGenerator.withDependencyInjection(annotator); return this; } ApplicationGenerator(String packageName, File targetDirectory); String targetCanonicalName(); ApplicationGenerator withDependencyInjection(DependencyInjectionAnnotator annotator); ApplicationGenerator withGeneratorContext(GeneratorContext context); ApplicationGenerator withRuleUnits(boolean hasRuleUnits); ApplicationGenerator withAddons(AddonsConfig addonsConfig); Collection<GeneratedFile> generate(); List<GeneratedFile> generateComponents(); GeneratedFile generateApplicationDescriptor(); G withGenerator(G generator); static String log(String source); static void log(byte[] source); ApplicationGenerator withClassLoader(ClassLoader classLoader); }
ApplicationGenerator { public ApplicationGenerator withDependencyInjection(DependencyInjectionAnnotator annotator) { this.annotator = annotator; this.applicationMainGenerator.withDependencyInjection(annotator); this.configGenerator.withDependencyInjection(annotator); return this; } ApplicationGenerator(String packageName, File targetDirectory); String targetCanonicalName(); ApplicationGenerator withDependencyInjection(DependencyInjectionAnnotator annotator); ApplicationGenerator withGeneratorContext(GeneratorContext context); ApplicationGenerator withRuleUnits(boolean hasRuleUnits); ApplicationGenerator withAddons(AddonsConfig addonsConfig); Collection<GeneratedFile> generate(); List<GeneratedFile> generateComponents(); GeneratedFile generateApplicationDescriptor(); G withGenerator(G generator); static String log(String source); static void log(byte[] source); ApplicationGenerator withClassLoader(ClassLoader classLoader); static final Logger logger; static final String DEFAULT_GROUP_ID; static final String DEFAULT_PACKAGE_NAME; static final String APPLICATION_CLASS_NAME; }