@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)
SourceRegistry
registerRepositorySources
in interface SourceRegistry
path
- to the repositoryrepo
- the repository to register.Repository
public List<Repository> getAllRepositories()
SourceRegistry
getAllRepositories
in interface SourceRegistry
Repository
public List<Project> getAllProjects(Repository repository)
SourceRegistry
getAllProjects
in interface SourceRegistry
repository
- the repository for getting the projects.Repository
,
Project
public void registerSource(Repository repo, Source source)
SourceRegistry
registerSource
in interface SourceRegistry
repo
- the repository for registering the source.source
- a source to be registeredSource
,
Project
public void registerProject(Source source, Project project)
SourceRegistry
registerProject
in interface SourceRegistry
source
- the source for registering the project.project
- a project to be registered.Source
,
Project
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.