Top Description Methods
org.jboss.modules

public Interface ModuleFinder

Known Direct Subinterfaces
org.jboss.modules.IterableModuleFinder
Known Direct Implementers
org.jboss.modules.JarModuleFinder, org.jboss.modules.ResourceLoaderModuleFinder, org.jboss.modules.FileSystemClassPathModuleFinder

A locator for module definitions.
Author
David M. Lloyd

Method Summary

Modifier and TypeMethod and Description
public default ModuleSpec

Returns:

the module specification, or null if no specification is found for this identifier
findModule
(String
the module name
name
,
ModuleLoader
the module loader from which dependencies should be resolved
delegateLoader
)

Find a module specification for the given name.

public default ModuleSpec

Returns:

the module specification, or null if no specification is found for this identifier
findModule
(ModuleIdentifier
the module identifier
moduleIdentifier
,
ModuleLoader
the module loader from which dependencies should be resolved
delegateLoader
)

Deprecated as a consequence of ModuleIdentifier being deprecated.
Find a module specification for the given identifier.

Method Detail

findModuleback to summary
public default ModuleSpec findModule(String name, ModuleLoader delegateLoader) throws ModuleLoadException

Find a module specification for the given name. The default implementation delegates to the legacy findModule(ModuleIdentifier, ModuleLoader) method.

Parameters
name:String

the module name

delegateLoader:ModuleLoader

the module loader from which dependencies should be resolved

Returns:ModuleSpec

the module specification, or null if no specification is found for this identifier

findModuleback to summary
public default ModuleSpec findModule(ModuleIdentifier moduleIdentifier, ModuleLoader delegateLoader) throws ModuleLoadException

Deprecated

as a consequence of ModuleIdentifier being deprecated. See corresponding docs for further information.

Find a module specification for the given identifier. The default implementation returns null. This method will never be called by the module system unless findModule(String, ModuleLoader) is left unimplemented.

Parameters
moduleIdentifier:ModuleIdentifier

the module identifier

delegateLoader:ModuleLoader

the module loader from which dependencies should be resolved

Returns:ModuleSpec

the module specification, or null if no specification is found for this identifier