Use AutoService for creation of Service Loader Metadata

This commit is contained in:
Jeremy Daggett 2014-12-09 15:06:15 -08:00 committed by Jeremy Daggett
parent 0ac7dd0dd9
commit d139f09ba6
3 changed files with 8 additions and 1 deletions

View File

@ -121,6 +121,11 @@
<artifactId>assertj-core</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.auto.service</groupId>
<artifactId>auto-service</artifactId>
<optional>true</optional>
</dependency>
</dependencies>
<profiles>

View File

@ -22,6 +22,7 @@ import static org.jclouds.reflect.Reflection2.typeToken;
import java.net.URI;
import java.util.Properties;
import org.jclouds.apis.ApiMetadata;
import org.jclouds.blobstore.BlobStoreContext;
import org.jclouds.glacier.blobstore.config.GlacierBlobStoreContextModule;
import org.jclouds.glacier.config.GlacierHttpApiModule;
@ -29,12 +30,14 @@ import org.jclouds.glacier.config.GlacierParserModule;
import org.jclouds.glacier.reference.GlacierHeaders;
import org.jclouds.rest.internal.BaseHttpApiMetadata;
import com.google.auto.service.AutoService;
import com.google.common.collect.ImmutableSet;
import com.google.inject.Module;
/**
* Implementation of ApiMetadata for Amazon Glacier API
*/
@AutoService(ApiMetadata.class)
public class GlacierApiMetadata extends BaseHttpApiMetadata {
private static Builder builder() {

View File

@ -1 +0,0 @@
org.jclouds.glacier.GlacierApiMetadata