public final class RepositoryFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Repository |
getRepository(java.io.File file)
Returns a repository for the given file, or null if no repository was found.
|
static Repository |
getRepository(RepositoryInfo info)
Returns a repository for the given file, or null if no repository was found.
|
static java.util.List<java.lang.Class<? extends Repository>> |
getRepositoryClasses()
Get a list of all available repository handlers.
|
public static java.util.List<java.lang.Class<? extends Repository>> getRepositoryClasses()
null
values, only.public static Repository getRepository(java.io.File file) throws java.lang.InstantiationException, java.lang.IllegalAccessException
file
- File that might contain a repositoryjava.lang.InstantiationException
java.lang.IllegalAccessException
public static Repository getRepository(RepositoryInfo info) throws java.lang.InstantiationException, java.lang.IllegalAccessException
info
- Information about the repositoryjava.lang.InstantiationException
java.lang.IllegalAccessException