ConfigurationStore targetStore,
BundleContext bundleContext,
Map<String, org.apache.geronimo.system.plugin.ServerInstance> servers) throws IOException {
for (ServerInstance instance : servers.values()) {
if ("default".equals(instance.getServerName())) {
KernelConfigurationManager configurationManager = new KernelConfigurationManager(kernel,
Collections.singleton(targetStore),
instance.getAttributeStore(),
(PersistentConfigurationList) instance.getAttributeStore(),
artifactManager,
instance.getArtifactResolver(),
Collections.<ListableRepository>singleton(targetRepo),
null,
bundleContext);
configurationManager.setOnline(false);
return configurationManager;
}
}
throw new IllegalStateException("No default server instance found: " + servers.keySet());
}