org.apache.felix.moduleloader
Class ModuleFactoryImpl

java.lang.Object
  extended by org.apache.felix.moduleloader.ModuleFactoryImpl
All Implemented Interfaces:
IModuleFactory

public class ModuleFactoryImpl
extends java.lang.Object
implements IModuleFactory


Constructor Summary
ModuleFactoryImpl(Logger logger)
           
 
Method Summary
 void addModuleListener(ModuleListener l)
           Adds a listener to the IModuleFactory to listen for module added and removed events.
 IModule createModule(java.lang.String id, IModuleDefinition md)
           
protected  void fireModuleAdded(IModule module)
           Fires an event indicating that the specified module was added to the IModuleFactory.
protected  void fireModuleRefreshed(IModule module)
          This is an experimental method that is likely to change or go away - so don't use it for now.
protected  void fireModuleRemoved(IModule module)
           Fires an event indicating that the specified module was removed from the IModuleFactory.
 IModule getModule(java.lang.String id)
           
 IModule[] getModules()
           
 void refreshModule(IModule module)
          This is an experimental method that is likely to change or go away - so don't use it for now.
 void removeModule(IModule module)
           
 void removeModuleListener(ModuleListener l)
           Removes a listener from the IModuleFactory.
 void setContentLoader(IModule module, IContentLoader contentLoader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleFactoryImpl

public ModuleFactoryImpl(Logger logger)
Method Detail

getModules

public IModule[] getModules()
Specified by:
getModules in interface IModuleFactory

getModule

public IModule getModule(java.lang.String id)
Specified by:
getModule in interface IModuleFactory

createModule

public IModule createModule(java.lang.String id,
                            IModuleDefinition md)
Specified by:
createModule in interface IModuleFactory

refreshModule

public void refreshModule(IModule module)
This is an experimental method that is likely to change or go away - so don't use it for now. Note to self, we need to think about what the implications of this are and whether we are fine with them.

Specified by:
refreshModule in interface IModuleFactory

removeModule

public void removeModule(IModule module)
Specified by:
removeModule in interface IModuleFactory

setContentLoader

public void setContentLoader(IModule module,
                             IContentLoader contentLoader)
Specified by:
setContentLoader in interface IModuleFactory

addModuleListener

public void addModuleListener(ModuleListener l)

Adds a listener to the IModuleFactory to listen for module added and removed events.

Specified by:
addModuleListener in interface IModuleFactory
Parameters:
l - the ModuleListener to add.

removeModuleListener

public void removeModuleListener(ModuleListener l)

Removes a listener from the IModuleFactory.

Specified by:
removeModuleListener in interface IModuleFactory
Parameters:
l - the ModuleListener to remove.

fireModuleAdded

protected void fireModuleAdded(IModule module)

Fires an event indicating that the specified module was added to the IModuleFactory.

Parameters:
module - the module that was added.

fireModuleRemoved

protected void fireModuleRemoved(IModule module)

Fires an event indicating that the specified module was removed from the IModuleFactory.

Parameters:
module - the module that was removed.

fireModuleRefreshed

protected void fireModuleRefreshed(IModule module)
This is an experimental method that is likely to change or go away - so don't use it for now. Note to self, we need to think about what the implications of this are and whether we are fine with them.