Package com.android.repository.api
Interface FallbackLocalRepoLoader
-
public interface FallbackLocalRepoLoaderAn 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 byLocalRepoLoaderImpl(or a child of such a directory).LocalRepoLoaderImplwill then use theLocalPackagegenerated by this to write out a package.xml in the normal format.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocalPackageparseLegacyLocalPackage(java.nio.file.Path f, ProgressIndicator progress)Try to find a package at the given location.voidrefresh()Refreshes the loader's internal state if necessary.booleanshouldParse(java.nio.file.Path root)Returnstrueif it looks like we should try to find a package in the given directory.
-
-
-
Method Detail
-
parseLegacyLocalPackage
@Nullable LocalPackage parseLegacyLocalPackage(@NonNull java.nio.file.Path f, @NonNull ProgressIndicator progress)
Try to find a package at the given location. If found, return aLocalPackagewith the package's information. Otherwise returnnull.
-
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.
-
shouldParse
boolean shouldParse(@NonNull java.nio.file.Path root)Returnstrueif it looks like we should try to find a package in the given directory.
-
-