BootstrapServiceFileResolverLoader

public class BootstrapServiceFileResolverLoader
extends Object implements IFileResolverLoader

java.lang.Object
   ↳ com.android.tradefed.config.BootstrapServiceFileResolverLoader


Loads resolvers using the service loading facility.

Unlike the one embedded in the DynamicRemoteFileResolver class, this implementation is very simple, returning a new instance of the requested resolver type each time it is called. This makes the fundemental assumption that resolvers are easy to initialize and don't require Option-annotated fields in their configuration. This is true for most of our resolvers today, and should be true of any resolver that is suitably generic to be used for config bootstrapping.

Summary

Public methods

IRemoteFileResolver load(String scheme, config)

Loads a resolver that can handle the provided scheme.

Public methods

load

public IRemoteFileResolver load (String scheme, 
                 config)

Loads a resolver that can handle the provided scheme.

Parameters
scheme String: the URI scheme that the loaded resolver is expected to handle.

config : a map of all dynamic resolver configuration key-value pairs specified by the 'dynamic-resolver-args' TF command-line flag.

Returns
IRemoteFileResolver