public class Repositories extends Object
| Modifier and Type | Field and Description |
|---|---|
static ComponentRepository[] |
JCORE_REPOSITORIES |
| Modifier and Type | Method and Description |
|---|---|
static ComponentRepository[] |
addRepositories(ComponentRepository... repositories)
Loads existing repositories from the JSON file in the
PipelineBuilderConstants.JcoreMeta#LOCAL_STORAGE, if it exists, and adds the given repositories. |
static ComponentRepository[] |
findRepositories()
Looks for the file of available UIMA component repositories in the
PipelineBuilderConstants.JcoreMeta#LOCAL_STORAGE directory. |
static File |
getJcoreMetaFile(ComponentRepository repository) |
public static final ComponentRepository[] JCORE_REPOSITORIES
public static ComponentRepository[] findRepositories()
PipelineBuilderConstants.JcoreMeta#LOCAL_STORAGE directory. If this file does not yet exist, it is created and filled with the JCORE_REPOSITORIES. Those repositories are then returned.
If other repositories should be used than JCoRe, call the addRepositories(ComponentRepository...) method first.IOExceptionpublic static ComponentRepository[] addRepositories(ComponentRepository... repositories) throws IOException
PipelineBuilderConstants.JcoreMeta#LOCAL_STORAGE, if it exists, and adds the given repositories. If the file does not exist, it is created and initialized with the given repositories. Note that this can be used to circumvent the addition of the JCoRe repositories when this method is called before the first call to findRepositories().repositories - IOExceptionpublic static File getJcoreMetaFile(ComponentRepository repository)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.