Forge - Shell API 1.2.0.Final

org.jboss.forge.project.services
Class ProjectFactory

java.lang.Object
  extended by org.jboss.forge.project.services.ProjectFactory

@Singleton
public class ProjectFactory
extends Object

Responsible for instantiating project instances through CDI.

Author:
Lincoln Baxter, III

Constructor Summary
ProjectFactory(FacetFactory facetFactory, javax.enterprise.inject.spi.BeanManager manager, javax.enterprise.inject.Instance<ProjectLocator> locatorInstance)
           
 
Method Summary
 boolean containsProject(DirectoryResource dir)
          An exception-safe method of determining whether a directory contains a project.
 Project createProject(DirectoryResource root, Class<? extends Facet>... facetTypes)
           
 Project findProject(DirectoryResource dir)
           
 Project findProjectRecursively(DirectoryResource startingPath)
           
 DirectoryResource findProjectRootRecusively(DirectoryResource currentDirectory)
           
 void init()
           
 void installSingleFacet(Project project, Class<? extends Facet> type)
           
 DirectoryResource locateRecursively(DirectoryResource startingDirectory, ProjectLocator locator)
           
 void registerSingleFacet(Project project, Class<? extends Facet> type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProjectFactory

@Inject
public ProjectFactory(FacetFactory facetFactory,
                             javax.enterprise.inject.spi.BeanManager manager,
                             javax.enterprise.inject.Instance<ProjectLocator> locatorInstance)
Method Detail

init

public void init()

findProjectRootRecusively

public DirectoryResource findProjectRootRecusively(DirectoryResource currentDirectory)

locateRecursively

public DirectoryResource locateRecursively(DirectoryResource startingDirectory,
                                           ProjectLocator locator)

findProjectRecursively

public Project findProjectRecursively(DirectoryResource startingPath)

createProject

public Project createProject(DirectoryResource root,
                             Class<? extends Facet>... facetTypes)

installSingleFacet

public void installSingleFacet(Project project,
                               Class<? extends Facet> type)

registerSingleFacet

public void registerSingleFacet(Project project,
                                Class<? extends Facet> type)

containsProject

public boolean containsProject(DirectoryResource dir)
An exception-safe method of determining whether a directory contains a project.


findProject

public Project findProject(DirectoryResource dir)

Forge - Shell API 1.2.0.Final

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