use of io.fabric8.cdi.Fabric8Extension in project fabric8 by fabric8io.
the class EndpointsInternalTest method setUpClass.
@BeforeClass
public static void setUpClass() {
MockConfigurer.configure();
weld = new Weld().disableDiscovery().extensions(new Fabric8Extension()).beanClasses(RandomEndpointToUrl.class, ServiceListInstanceWithEndpoint.class, ServiceInstanceWithEndpoint.class, ServiceListWithoutEndpoint.class, ServiceListInstanceWithEndpoint2.class, ServiceListInstanceWithEndpoint.class, ServiceListInstanceWithEndpoint2.class, ServiceInstanceWithMultiPortEndpoint.class, ServiceInstanceUsingFactoryAndEndpoints.class).initialize();
}
use of io.fabric8.cdi.Fabric8Extension in project fabric8 by fabric8io.
the class NoNamespaceTest method createInstance.
void createInstance(Class type) {
WeldContainer weld = new Weld().disableDiscovery().extensions(new Fabric8Extension()).beanClasses(MyBean.class).initialize();
CreationalContext ctx = weld.getBeanManager().createCreationalContext(null);
for (Bean bean : weld.getBeanManager().getBeans(type)) {
weld.getBeanManager().getReference(bean, type, ctx);
}
}
use of io.fabric8.cdi.Fabric8Extension in project fabric8 by fabric8io.
the class BrokenFactoryInternalTest method createInstance.
void createInstance(Class type) {
WeldContainer weld = new Weld().disableDiscovery().extensions(new Fabric8Extension()).beanClasses(MyFactory.class, MyBean.class).initialize();
CreationalContext ctx = weld.getBeanManager().createCreationalContext(null);
for (Bean bean : weld.getBeanManager().getBeans(type)) {
weld.getBeanManager().getReference(bean, type, ctx);
}
}
Aggregations