org.directwebremoting.impl
Class MasterModuleManager

java.lang.Object
  extended by org.directwebremoting.impl.MasterModuleManager
All Implemented Interfaces:
ModuleManager

public class MasterModuleManager
extends java.lang.Object
implements ModuleManager

A ModuleManager that delegates to customModuleManager and fallbackModuleManager.

Author:
Mike Wilson [mikewse at g mail dot com]

Constructor Summary
MasterModuleManager()
           
 
Method Summary
 Module getModule(java.lang.String scriptName, boolean includeHidden)
          Returns the specific module instance matching the supplied name.
 java.util.Collection<java.lang.String> getModuleNames(boolean includeHidden)
          Returns the names of all modules handled by this ModuleManager.
 void setCustomModuleManager(ModuleManager moduleManager)
           
 void setFallbackModuleManager(ModuleManager moduleManager)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MasterModuleManager

public MasterModuleManager()
Method Detail

getModuleNames

public java.util.Collection<java.lang.String> getModuleNames(boolean includeHidden)
Description copied from interface: ModuleManager
Returns the names of all modules handled by this ModuleManager.

Specified by:
getModuleNames in interface ModuleManager
Parameters:
includeHidden - Should hidden (internal) modules also be listed?
Returns:
collection of name strings

getModule

public Module getModule(java.lang.String scriptName,
                        boolean includeHidden)
Description copied from interface: ModuleManager
Returns the specific module instance matching the supplied name.

Specified by:
getModule in interface ModuleManager
Parameters:
scriptName - module name
includeHidden - Should hidden (internal) modules also be fetchable?
Returns:
module object

setCustomModuleManager

public void setCustomModuleManager(ModuleManager moduleManager)
Parameters:
moduleManager - the moduleManager to set

setFallbackModuleManager

public void setFallbackModuleManager(ModuleManager moduleManager)
Parameters:
moduleManager - the moduleManager to set

Copyright 2008