|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.wst.server.core.model.ModuleDelegate
A module delegate provides a mechanism for discovering information about individual modules. Modules are returned from module factory delegates; their delegates are created when ModuleFactoryDelegate.createModule() is called.
When the module needs to be given a delegate, the delegate class specified for the module is instantiated with a 0-argument constructor.
Module delegates may keep state in instance fields, but that state is transient and will not be persisted across workbench sessions.
This interface is intended to be implemented by clients.
IModule
,
ModuleFactoryDelegate
Constructor Summary | |
---|---|
ModuleDelegate()
Delegates must have a public 0-arg constructor. |
Method Summary | |
---|---|
abstract IModule[] |
getChildModules()
Returns the child modules of this module. |
IModule |
getModule()
Returns the module that this module delegate corresponds to. |
void |
initialize()
Initializes this module delegate. |
void |
initialize(IModule newModule)
Initializes this module delegate with its life-long module instance. |
abstract IModuleResource[] |
members()
Returns the current array of module artifacts. |
abstract IStatus |
validate()
Validates this module instance. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ModuleDelegate()
Method Detail |
public final void initialize(IModule newModule)
This method is called by the server core framework. Clients should never call this method.
newModule
- the module instancepublic void initialize()
This method is called by the server core framework. Clients should never call this method.
public IModule getModule()
public abstract IStatus validate()
This method is called by the web server core framework. Clients should never call this method.
IStatus.OK
if this
runtime is valid, otherwise a status object indicating what is
wrong with itpublic abstract IModule[] getChildModules()
public abstract IModuleResource[] members() throws CoreException
CoreException
- thrown if there is a problem getting the members
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |