|
|||||||||
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()
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. |
static RepositoryFactory |
getInstance()
Return the singleton instance of the repository factory. |
static void |
setInstance(RepositoryFactory instance)
Set the singleton instance of the repository factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryFactory()
getInstance
and setInstance
.
Method Detail |
---|
public static RepositoryFactory getInstance()
public static void setInstance(RepositoryFactory instance)
getInstance
will automatically create the repository
factory for you.
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 |