org.netbeans.api.web.webmodule 1.9

org.netbeans.modules.web.spi.webmodule
Interface WebModuleProvider


public interface WebModuleProvider

Provider interface for web modules.

The org.netbeans.api.web.webmodule module registers an implementation of this interface to global lookup which looks for the project which owns a file (if any) and checks its lookup for this interface, and if it finds an instance, delegates to it. Therefore it is not normally necessary for a project type provider to register its own instance just to define the web module for files it owns, assuming it uses projects for implementation of the web module.

If needed a new implementation of this interface can be registered in global lookup.

See Also:
WebModule.getWebModule(org.openide.filesystems.FileObject)

Method Summary
 WebModule findWebModule(org.openide.filesystems.FileObject file)
          Find the web module containing a given file.
 

Method Detail

findWebModule

WebModule findWebModule(org.openide.filesystems.FileObject file)
Find the web module containing a given file.

Parameters:
file - a file; never null.
Returns:
a web module, or null if this provider could not find a web module containing this file.
See Also:
WebModuleFactory

org.netbeans.api.web.webmodule 1.9

Built on September 25 2007.  |  Portions Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.