Package ai.djl.repository
Interface RepositoryFactory
-
public interface RepositoryFactoryA interface responsible to createRepositoryinstances.
-
-
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 theRepositoryFactorysupports.RepositorynewInstance(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 theRepositoryFactorysupports.- Returns:
- a set of URI scheme that the
RepositoryFactorysupports
-
-