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.
|
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