|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.llnl.babel.repository.RepositoryFactory
public class RepositoryFactory
RepositoryFactory
is a singleton factory that manages the
creation of repository interfaces based on a repository URI. A URI that
starts with "http:" or "https:" specifies a web repository. A URI that
starts with "file:" creates a file repository. All other URIs are assumed
to be file repositories.
Constructor Summary | |
---|---|
RepositoryFactory(Context context)
Create a new instance of the repository factory. |
Method Summary | |
---|---|
Repository |
createRepository(java.lang.String uri)
Create a new repository object based on the URI. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryFactory(Context context)
getInstance
and setInstance
.
Method Detail |
---|
public Repository createRepository(java.lang.String uri) throws RepositoryException
RepositoryException
is thrown if any
error is detected in creating the repository.
RepositoryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |