Skip to content

Commit

Permalink
chore: make GoogleApiFactory an OSGi compliant component (#3738)
Browse files Browse the repository at this point in the history
  • Loading branch information
diegomarquezp authored Jun 7, 2023
1 parent 012352b commit 79e7672
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,15 @@
import org.eclipse.core.net.proxy.IProxyChangeEvent;
import org.eclipse.core.net.proxy.IProxyChangeListener;
import org.eclipse.core.net.proxy.IProxyService;
import org.osgi.service.component.annotations.Component;
import org.osgi.service.component.annotations.Reference;
import org.osgi.service.component.annotations.ReferenceCardinality;
import org.osgi.service.component.annotations.ReferencePolicy;

/**
* Class to obtain various Google Cloud Platform related APIs.
*/
@Component
public class GoogleApiFactory implements IGoogleApiFactory {

private static AccountProvider accountProvider = DefaultAccountProvider.INSTANCE;
Expand All @@ -67,7 +69,7 @@ public void proxyInfoChanged(IProxyChangeEvent event) {
};

@VisibleForTesting
GoogleApiFactory() {
public GoogleApiFactory() {
this(new ProxyFactory());
}

Expand Down

0 comments on commit 79e7672

Please sign in to comment.