@ApplicationScoped public class InMemorySourceRegistry extends Object implements SourceRegistry
| Constructor and Description |
|---|
InMemorySourceRegistry() |
| Modifier and Type | Method and Description |
|---|---|
List<Project> |
getAllProjects(Repository repository)
Get All the registered projects for a given repository
|
List<Repository> |
getAllRepositories()
Get All the registered repositories
|
void |
registerProject(Source source,
Project project)
Register a Project code from a Source
|
void |
registerRepositorySources(org.uberfire.java.nio.file.Path path,
Repository repo)
Register a repository containing source code projects.
|
void |
registerSource(Repository repo,
Source source)
Register a Source code from a Repository
|
public void registerRepositorySources(org.uberfire.java.nio.file.Path path,
Repository repo)
SourceRegistryregisterRepositorySources in interface SourceRegistrypath - to the repositoryrepo - the repository to register.Repositorypublic List<Repository> getAllRepositories()
SourceRegistrygetAllRepositories in interface SourceRegistryRepositorypublic List<Project> getAllProjects(Repository repository)
SourceRegistrygetAllProjects in interface SourceRegistryrepository - the repository for getting the projects.Repository,
Projectpublic void registerSource(Repository repo, Source source)
SourceRegistryregisterSource in interface SourceRegistryrepo - the repository for registering the source.source - a source to be registeredSource,
Projectpublic void registerProject(Source source, Project project)
SourceRegistryregisterProject in interface SourceRegistrysource - the source for registering the project.project - a project to be registered.Source,
ProjectCopyright © 2001–2019 JBoss by Red Hat. All rights reserved.