com.android.repository.api
Interface FallbackLocalRepoLoader


public interface FallbackLocalRepoLoader

An implementation of a local repository parser to use to try to identify a package if the normal mechanism doesn't. If one is provided to RepoManager, parseLegacyLocalPackage(File, ProgressIndicator) will be run on every repository directory that doesn't contain a package recognized by LocalRepoLoader (or a child of such a directory). LocalRepoLoader will then use the LocalPackage generated by this to write out a package.xml in the normal format.


Method Summary
 LocalPackage parseLegacyLocalPackage(java.io.File f, ProgressIndicator progress)
          Try to find a package at the given location.
 void refresh()
          Refreshes the loader's internal state if necessary.
 

Method Detail

parseLegacyLocalPackage

@Nullable
LocalPackage parseLegacyLocalPackage(@NonNull
                                              java.io.File f,
                                              @NonNull
                                              ProgressIndicator progress)
Try to find a package at the given location. If found, return a LocalPackage with the package's information. Otherwise return null.


refresh

void refresh()
Refreshes the loader's internal state if necessary. This should probably be done (by the repo manager) whenever a new local repo load is started.