Package org.guvnor.ala.registry.inmemory
Class InMemorySourceRegistry
- java.lang.Object
-
- org.guvnor.ala.registry.inmemory.InMemorySourceRegistry
-
- All Implemented Interfaces:
SourceRegistry
@ApplicationScoped public class InMemorySourceRegistry extends Object implements SourceRegistry
-
-
Constructor Summary
Constructors Constructor Description InMemorySourceRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Project>getAllProjects(Repository repository)Get All the registered projects for a given repositoryList<Repository>getAllRepositories()Get All the registered repositoriesvoidregisterProject(Source source, Project project)Register a Project code from a SourcevoidregisterRepositorySources(org.uberfire.java.nio.file.Path path, Repository repo)Register a repository containing source code projects.voidregisterSource(Repository repo, Source source)Register a Source code from a Repository
-
-
-
Method Detail
-
registerRepositorySources
public void registerRepositorySources(org.uberfire.java.nio.file.Path path, Repository repo)Description copied from interface:SourceRegistryRegister a repository containing source code projects.- Specified by:
registerRepositorySourcesin interfaceSourceRegistry- Parameters:
path- to the repositoryrepo- the repository to register.- See Also:
Repository
-
getAllRepositories
public List<Repository> getAllRepositories()
Description copied from interface:SourceRegistryGet All the registered repositories- Specified by:
getAllRepositoriesin interfaceSourceRegistry- Returns:
- List
with all the registered repositories - See Also:
Repository
-
getAllProjects
public List<Project> getAllProjects(Repository repository)
Description copied from interface:SourceRegistryGet All the registered projects for a given repository- Specified by:
getAllProjectsin interfaceSourceRegistry- Parameters:
repository- the repository for getting the projects.- Returns:
- a list with all the registered projects for the given repository.
- See Also:
Repository,Project
-
registerSource
public void registerSource(Repository repo, Source source)
Description copied from interface:SourceRegistryRegister a Source code from a Repository- Specified by:
registerSourcein interfaceSourceRegistry- Parameters:
repo- the repository for registering the source.source- a source to be registered- See Also:
Source,Project
-
registerProject
public void registerProject(Source source, Project project)
Description copied from interface:SourceRegistryRegister a Project code from a Source- Specified by:
registerProjectin interfaceSourceRegistry- Parameters:
source- the source for registering the project.project- a project to be registered.- See Also:
Source,Project
-
-