Package ai.djl.repository
Interface RepositoryFactory
-
public interface RepositoryFactory
A interface responsible to createRepository
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Set<java.lang.String>
getSupportedScheme()
Returns a set of URI scheme that theRepositoryFactory
supports.Repository
newInstance(java.lang.String name, java.net.URI uri)
Creates a new instance of a repository with a name and url.
-
-
-
Method Detail
-
newInstance
Repository newInstance(java.lang.String name, java.net.URI uri)
Creates a new instance of a repository with a name and url.- Parameters:
name
- the repository nameuri
- the repository location- Returns:
- the new repository
-
getSupportedScheme
java.util.Set<java.lang.String> getSupportedScheme()
Returns a set of URI scheme that theRepositoryFactory
supports.- Returns:
- a set of URI scheme that the
RepositoryFactory
supports
-
-