org.jboss.modules
Class SystemClassPathModuleLoader

java.lang.Object
  extended by org.jboss.modules.ModuleLoader
      extended by org.jboss.modules.SystemClassPathModuleLoader

public final class SystemClassPathModuleLoader
extends ModuleLoader

The module loader for the system/application class path module.

Author:
David M. Lloyd

Method Summary
protected  ModuleSpec findModule(ModuleIdentifier moduleIdentifier)
          Find a Module's specification in this ModuleLoader by its identifier.
static SystemClassPathModuleLoader getInstance()
          Get the system module loader.
 String toString()
          Get the string representation of this module loader.
 
Methods inherited from class org.jboss.modules.ModuleLoader
findLoadedModuleLocal, forClass, forClassLoader, loadModule, loadModuleLocal, preloadExportedModule, preloadModule, preloadModule, refreshResourceLoaders, relink, setAndRefreshResourceLoaders, setAndRelinkDependencies, unloadModuleLocal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static SystemClassPathModuleLoader getInstance()
Get the system module loader.

Returns:
the system module loader

findModule

protected ModuleSpec findModule(ModuleIdentifier moduleIdentifier)
                         throws ModuleLoadException
Find a Module's specification in this ModuleLoader by its identifier. This should be overriden by sub-classes to implement the Module loading strategy for this loader.

If no module is found in this module loader with the given identifier, then this method should return null. If the module is found but some problem occurred (for example, a transitive dependency failed to load) then this method should throw a ModuleLoadException of the relevant type.

Specified by:
findModule in class ModuleLoader
Parameters:
moduleIdentifier - The modules Identifier
Returns:
the module specification, or null if no module is found with the given identifier
Throws:
ModuleLoadException - if any problems occur finding the module

toString

public String toString()
Description copied from class: ModuleLoader
Get the string representation of this module loader.

Specified by:
toString in class ModuleLoader
Returns:
the string representation


Copyright © 2011. All Rights Reserved.