|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.wst.server.core.model.ModuleFactoryDelegate
org.eclipse.wst.server.core.util.ProjectModuleFactoryDelegate
public abstract class ProjectModuleFactoryDelegate
A helper class for defining a module factory that provides modules based on projects.
Constructor Summary | |
---|---|
ProjectModuleFactoryDelegate()
Construct a new ProjectModuleFactoryDelegate. |
Method Summary | |
---|---|
IModule |
findModule(java.lang.String id)
Returns the module created by this factory that has the given id, or null if there is no module with the given id. |
IModule[] |
getModules()
Return all modules created by this factory. |
IModule[] |
getModules(IProject project)
Return all modules created by this factory that are contained within the given project. |
static void |
handleGlobalProjectChange(IProject project,
IResourceDelta delta)
Handle changes to a project. |
Methods inherited from class org.eclipse.wst.server.core.model.ModuleFactoryDelegate |
---|
clearModuleCache, getModuleDelegate, initialize |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProjectModuleFactoryDelegate()
Method Detail |
---|
public final IModule[] getModules()
ModuleFactoryDelegate
This method is normally called by the web server core framework. Clients (other than the delegate) should never call this method.
A new array is returned on each call, so clients may store or modify the result.
getModules
in class ModuleFactoryDelegate
IModule
public static final void handleGlobalProjectChange(IProject project, IResourceDelta delta)
project
- a projectdelta
- a resource deltapublic IModule[] getModules(IProject project)
ModuleFactoryDelegate
This method is normally called by the web server core framework. Clients (other than the delegate) should never call this method.
A new array is returned on each call, so clients may store or modify the result.
getModules
in class ModuleFactoryDelegate
project
- a project
IModule
public IModule findModule(java.lang.String id)
ModuleFactoryDelegate
null
if there is no module with the given id. The id must
not be null.
Subclasses should override this method if they do not need to search through the entire project list.
This method is normally called by the web server core framework. Clients (other than the delegate) should never call this method.
findModule
in class ModuleFactoryDelegate
id
- a module id
null
if no module
could be found IModule
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |