Class ModuleLayerFromSingleClassLoaderDecorator.AbstractModuleFinder
java.lang.Object
net.bytebuddy.dynamic.loading.ModuleLayerFromSingleClassLoaderDecorator.AbstractModuleFinder
- Enclosing class:
ModuleLayerFromSingleClassLoaderDecorator
public abstract static class ModuleLayerFromSingleClassLoaderDecorator.AbstractModuleFinder
extends Object
An abstract implementation of a module finder that can locate specific modules.
This class provides the base functionality for finding modules based on their names and serves as a foundation for creating custom module finders.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractModuleFinder(String name, Object moduleReference) Creates a new abstract module finder. -
Method Summary
-
Constructor Details
-
AbstractModuleFinder
-
-
Method Details
-
doFind
Finds a module by name.- Parameters:
name- The module name to find.- Returns:
- An optional containing the module reference if found, empty otherwise.
-
doFindAll
Finds all modules managed by this finder.- Returns:
- A set containing the single module reference managed by this finder.
-