@Exported public interface ProjectFactory
Project instances.| Modifier and Type | Method and Description |
|---|---|
ListenerRegistration<ProjectListener> |
addProjectListener(ProjectListener listener)
Register a listener for project events
|
Project |
createProject(DirectoryResource projectDir)
Create a
Project in the specified DirectoryResource. |
Project |
createProject(DirectoryResource targetDir,
Iterable<Class<? extends ProjectFacet>> facetTypes)
|
Project |
createTempProject()
Create a
Project in a temporary location. |
Project |
findProject(DirectoryResource target)
Locate a
Project in the ancestry of the given DirectoryResource. |
Project |
findProject(DirectoryResource target,
Predicate<Project> filter)
Locate a
Project in the ancestry of the given DirectoryResource. |
Project findProject(DirectoryResource target)
Project in the ancestry of the given DirectoryResource. Return null if no
Project could be located.Project findProject(DirectoryResource target, Predicate<Project> filter)
Project in the ancestry of the given DirectoryResource. Filter results using the given
Predicate. Return null if no Project could be located.Project createProject(DirectoryResource projectDir)
Project in the specified DirectoryResource.Project createProject(DirectoryResource targetDir, Iterable<Class<? extends ProjectFacet>> facetTypes)
Project createTempProject()
Project in a temporary location. This method is useful for testing purposes.ListenerRegistration<ProjectListener> addProjectListener(ProjectListener listener)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.