@Exported
public interface ProjectFactory
Project instances.| Modifier and Type | Method and Description |
|---|---|
org.jboss.forge.furnace.spi.ListenerRegistration<ProjectListener> |
addProjectListener(ProjectListener listener)
Register a listener for project events
|
boolean |
containsProject(FileResource<?> target)
Returns true if a
Project exists in the ancestry of the given FileResource. |
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(FileResource<?> target)
Locate a
Project in the ancestry of the given FileResource. |
Project |
findProject(FileResource<?> target,
org.jboss.forge.furnace.util.Predicate<Project> filter)
Locate a
Project in the ancestry of the given FileResource. |
Project findProject(FileResource<?> target)
Project in the ancestry of the given FileResource. Return null if no
Project could be located.Project findProject(FileResource<?> target, org.jboss.forge.furnace.util.Predicate<Project> filter)
Project in the ancestry of the given FileResource. 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)
boolean containsProject(FileResource<?> target)
Project exists in the ancestry of the given FileResource. false if no
Project could be locatedProject createTempProject()
Project in a temporary location. This method is useful for testing purposes.org.jboss.forge.furnace.spi.ListenerRegistration<ProjectListener> addProjectListener(ProjectListener listener)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.