org.netbeans.modules.projectapi/1 1.36.1

org.netbeans.spi.project
Interface ProjectFactory2

All Superinterfaces:
ProjectFactory

public interface ProjectFactory2
extends ProjectFactory

Create in-memory projects from disk directories. Instances should be registered into default lookup as ProjectFactory instances.

Since:
org.netbeans.modules.projectapi 1.22

Method Summary
 ProjectManager.Result isProject2(FileObject projectDirectory)
          Test whether a given directory probably refers to a project recognized by this factory without actually trying to create it.
 
Methods inherited from interface org.netbeans.spi.project.ProjectFactory
isProject, loadProject, saveProject
 

Method Detail

isProject2

ProjectManager.Result isProject2(FileObject projectDirectory)
Test whether a given directory probably refers to a project recognized by this factory without actually trying to create it.

Should be as fast as possible as it might be called sequentially on a lot of directories.

Need not be definite; it is permitted to return null or throw an exception from ProjectFactory.loadProject(org.openide.filesystems.FileObject, org.netbeans.spi.project.ProjectState) even when returning Result instance from this method, in case the directory looked like a project directory but in fact had something wrong with it.

Will be called inside read access.

Parameters:
projectDirectory - a directory which might refer to a project
Returns:
Result instance if this factory recognizes it, or null if the directory is not recognized

org.netbeans.modules.projectapi/1 1.36.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.