@Test void testSeInitializerFails() { assertThrows(IllegalStateException.class, SeContainerInitializer::newInstance); Config config = ConfigProviderResolver.instance() .getBuilder() .withSources(MpConfigSources .create(Map.of(HelidonContainerInitializer.CONFIG_ALLOW_INITIALIZER, "true"))) .build(); configResolver.registerConfig(config, cl); SeContainerInitializer seContainerInitializer = SeContainerInitializer.newInstance(); assertThat(seContainerInitializer, instanceOf(HelidonContainerInitializer.class)); try (SeContainer container = seContainerInitializer.initialize()) { } }
@Override public SeContainer initialize() { container.initInContext(); return container.start(); }
HelidonContainerInitializer extends SeContainerInitializer { @Override public SeContainer initialize() { container.initInContext(); return container.start(); } }
HelidonContainerInitializer extends SeContainerInitializer { @Override public SeContainer initialize() { container.initInContext(); return container.start(); } HelidonContainerInitializer(); }
HelidonContainerInitializer extends SeContainerInitializer { @Override public SeContainer initialize() { container.initInContext(); return container.start(); } HelidonContainerInitializer(); @Override SeContainerInitializer addBeanClasses(Class<?>... classes); @Override SeContainerInitializer addPackages(Class<?>... packageClasses); @Override SeContainerInitializer addPackages(boolean scanRecursively, Class<?>... packageClasses); @Override SeContainerInitializer addPackages(Package... packages); @Override SeContainerInitializer addPackages(boolean scanRecursively, Package... packages); @Override SeContainerInitializer addExtensions(Extension... extensions); @Override SeContainerInitializer addExtensions(Class<? extends Extension>... extensions); @Override SeContainerInitializer enableInterceptors(Class<?>... interceptorClasses); @Override SeContainerInitializer enableDecorators(Class<?>... decoratorClasses); @Override SeContainerInitializer selectAlternatives(Class<?>... alternativeClasses); @Override SeContainerInitializer selectAlternativeStereotypes(Class<? extends Annotation>... alternativeStereotypeClasses); @Override SeContainerInitializer addProperty(String key, Object value); @Override SeContainerInitializer setProperties(Map<String, Object> properties); @Override SeContainerInitializer disableDiscovery(); @Override SeContainerInitializer setClassLoader(ClassLoader classLoader); @Override SeContainer initialize(); }
HelidonContainerInitializer extends SeContainerInitializer { @Override public SeContainer initialize() { container.initInContext(); return container.start(); } HelidonContainerInitializer(); @Override SeContainerInitializer addBeanClasses(Class<?>... classes); @Override SeContainerInitializer addPackages(Class<?>... packageClasses); @Override SeContainerInitializer addPackages(boolean scanRecursively, Class<?>... packageClasses); @Override SeContainerInitializer addPackages(Package... packages); @Override SeContainerInitializer addPackages(boolean scanRecursively, Package... packages); @Override SeContainerInitializer addExtensions(Extension... extensions); @Override SeContainerInitializer addExtensions(Class<? extends Extension>... extensions); @Override SeContainerInitializer enableInterceptors(Class<?>... interceptorClasses); @Override SeContainerInitializer enableDecorators(Class<?>... decoratorClasses); @Override SeContainerInitializer selectAlternatives(Class<?>... alternativeClasses); @Override SeContainerInitializer selectAlternativeStereotypes(Class<? extends Annotation>... alternativeStereotypeClasses); @Override SeContainerInitializer addProperty(String key, Object value); @Override SeContainerInitializer setProperties(Map<String, Object> properties); @Override SeContainerInitializer disableDiscovery(); @Override SeContainerInitializer setClassLoader(ClassLoader classLoader); @Override SeContainer initialize();  }