|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectverinec.data.repository.RepositoryFactory
public class RepositoryFactory
Factory for repositories.
To choose the implementation class, the system property verinec.data.repository.implementation
is read. If this is not set, a FileRepository is created as default.
| Constructor Summary | |
|---|---|
RepositoryFactory()
|
|
| Method Summary | |
|---|---|
static IVerinecRepository |
createRepository(String name)
Instantiate a repository for an existing project or create a new one if there is no project with this name. |
private static Class |
getImpl()
Determine the class to instantiate for the IRepository. |
static String[] |
getProjectNames()
Returns an array of all available projects in the repository. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryFactory()
| Method Detail |
|---|
private static Class getImpl()
throws VerinecException
VerinecException - if the class can not be loaded.
public static IVerinecRepository createRepository(String name)
throws VerinecException
The factory relies on the implementation of IVerinecRepository
to have a constructor with one String parameter, the
repository name.
name - Name of the project to open or create, may not be null or empty String.
VerinecException - If repository can not be instantiated.
public static String[] getProjectNames()
throws VerinecException
VerinecException - if the repository throws an error while retreiving the project names.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||