Forge - Projects API 2.0.0.Alpha3

org.jboss.forge.projects
Interface ProjectFactory


@Exported
public interface ProjectFactory

Used to create new or obtain references to existing Project instances.

Author:
Lincoln Baxter, III

Method Summary
 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)
          Create a Project with the given ProjectFacet types in the specified DirectoryResource.
 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.
 

Method Detail

findProject

Project findProject(DirectoryResource target)
Locate a Project in the ancestry of the given DirectoryResource.


findProject

Project findProject(DirectoryResource target,
                    Predicate<Project> filter)
Locate a Project in the ancestry of the given DirectoryResource. Filter results using the given Predicate


createProject

Project createProject(DirectoryResource projectDir)
Create a Project in the specified DirectoryResource.


createProject

Project createProject(DirectoryResource targetDir,
                      Iterable<Class<? extends ProjectFacet>> facetTypes)
Create a Project with the given ProjectFacet types in the specified DirectoryResource.


addProjectListener

ListenerRegistration<ProjectListener> addProjectListener(ProjectListener listener)
Register a listener for project events


Forge - Projects API 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.