Fixed an overzealous refactor.

This commit is contained in:
Chris Custine 2011-03-13 23:08:38 -06:00
parent cdd1636514
commit f5e479a4b5
2 changed files with 12 additions and 10 deletions

View File

@ -19,22 +19,24 @@
package org.jclouds.ohai;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import com.google.inject.Module;
import org.jclouds.compute.ComputeServiceContextBuilder;
import java.util.Properties;
import javax.inject.Inject;
import org.jclouds.ohai.config.ConfiguresOhai;
import org.jclouds.ohai.config.JMXOhaiModule;
import org.jclouds.rest.RestContext;
import org.jclouds.rest.RestContextBuilder;
import javax.inject.Inject;
import java.util.Properties;
import com.google.common.base.Predicate;
import com.google.common.collect.Iterables;
import com.google.inject.Module;
/**
*
* @see RestContext
*/
public class OhaiContextBuilder<S, A> extends ComputeServiceContextBuilder<S, A> {
public class OhaiContextBuilder<S, A> extends RestContextBuilder<S, A> {
@Inject
public OhaiContextBuilder(Class<S> syncClientClass, Class<A> asyncClientClass, Properties properties) {
@ -56,4 +58,4 @@ public class OhaiContextBuilder<S, A> extends ComputeServiceContextBuilder<S, A>
modules.add(new JMXOhaiModule());
}
}
}

View File

@ -20,7 +20,7 @@
package org.jclouds.chef;
import com.google.common.collect.Iterables;
import org.jclouds.compute.util.ComputeServiceUtils;
import org.jclouds.rest.Providers;
import org.testng.annotations.Test;
/**
@ -33,7 +33,7 @@ public class ProvidersInPropertiesTest {
@Test
public void testSupportedProviders() {
Iterable<String> providers = ComputeServiceUtils.getSupportedProviders();
Iterable<String> providers = Providers.getSupportedProviders();
assert Iterables.contains(providers, "chef") : providers;
}