use of com.yahoo.container.di.CloudSubscriberFactory in project vespa by vespa-engine.
the class ContainerTestBase method complete.
public void complete() {
try {
Container container = new Container(new CloudSubscriberFactory(dirConfigSource().configSource()), dirConfigSource().configId(), new ContainerTest.TestDeconstructor(), new Osgi() {
@SuppressWarnings("unchecked")
@Override
public Class<Object> resolveClass(BundleInstantiationSpecification spec) {
try {
return (Class<Object>) Class.forName(spec.classId.getName());
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
}
@Override
public BundleClasses getBundleClasses(ComponentSpecification bundle, Set<String> packagesToScan) {
throw new UnsupportedOperationException("getBundleClasses not supported");
}
@Override
public void useBundles(Collection<FileReference> bundles) {
}
@Override
public Bundle getBundle(ComponentSpecification spec) {
throw new UnsupportedOperationException("getBundle not supported.");
}
});
componentGraph = container.runOnce(componentGraph, Guice.createInjector());
} catch (Exception e) {
throw new RuntimeException(e);
}
}
Aggregations