public static void main(String[] args) { SeContainer seContainer = SeContainerInitializer.newInstance() .disableDiscovery() .addExtensions(new ReactorExtension()) .addBeanClasses(FooBarBean.class, EventReceiver.class) .initialize(); FooBarBean bean = seContainer.select(FooBarBean.class).get(); bean.fluxTheCapacitor(); }
@Test public void bootBasicContainer() { SeContainerInitializer initializer = SeContainerInitializer.newInstance(); try (SeContainer container = initializer.initialize()) { assertTrue(container.isRunning()); Set<Bean<?>> greeters = container.getBeanManager().getBeans("greeter"); assertTrue(greeters.size() == 1); } }
public SeContainer getSeContainer() { return seContainer; }