Top Description Methods
org.jboss.modules

public Interface IterableModuleFinder

extends ModuleFinder
Known Direct Implementers
org.jboss.modules.JDKModuleFinder, org.jboss.modules.LocalModuleFinder
Imports
java.util.Collections, .Iterator

A module finder which is iterable.
Author
David M. Lloyd

Method Summary

Modifier and TypeMethod and Description
public default Iterator<ModuleIdentifier>

Returns:

an iterator for the modules in this module finder
iterateModules
(ModuleIdentifier
the identifier to start with, or null to iterate all modules
baseIdentifier
,
boolean
true to find recursively nested modules, false to only find immediately nested modules
recursive
)

This method returns an empty iterator and should not be used by new code.
public default Iterator<String>

Returns:

an iterator for the modules in this module finder
iterateModules
(String
the identifier to start with, or null to iterate all modules; ignored if this module loader does not have a concept of nested modules
baseName
,
boolean
true to find recursively nested modules, false to only find immediately nested modules; ignored if this module finder does not have a concept of nested modules
recursive
)

Iterate the modules which can be located via this module finder.
public default Iterator<String>
iterateModules(String baseName, boolean recursive, final ModuleLoader delegateLoader)

Inherited from org.jboss.modules.ModuleFinder:
findModulefindModule

Method Detail

iterateModulesback to summary
public default Iterator<ModuleIdentifier> iterateModules(ModuleIdentifier baseIdentifier, boolean recursive)

This method returns an empty iterator and should not be used by new code.

Parameters
baseIdentifier:ModuleIdentifier

the identifier to start with, or null to iterate all modules

recursive:boolean

true to find recursively nested modules, false to only find immediately nested modules

Returns:Iterator<ModuleIdentifier>

an iterator for the modules in this module finder

Annotations
@Deprecated
iterateModulesback to summary
public default Iterator<String> iterateModules(String baseName, boolean recursive)

Iterate the modules which can be located via this module finder.

Parameters
baseName:String

the identifier to start with, or null to iterate all modules; ignored if this module loader does not have a concept of nested modules

recursive:boolean

true to find recursively nested modules, false to only find immediately nested modules; ignored if this module finder does not have a concept of nested modules

Returns:Iterator<String>

an iterator for the modules in this module finder

Annotations
@Deprecated
iterateModulesback to summary
public default Iterator<String> iterateModules(String baseName, boolean recursive, final ModuleLoader delegateLoader)