Enum ModuleLayerFromSingleClassLoaderDecorator.Factory
java.lang.Object
java.lang.Enum<ModuleLayerFromSingleClassLoaderDecorator.Factory>
net.bytebuddy.dynamic.loading.ModuleLayerFromSingleClassLoaderDecorator.Factory
- All Implemented Interfaces:
Serializable, Comparable<ModuleLayerFromSingleClassLoaderDecorator.Factory>, java.lang.constant.Constable, ClassLoaderDecorator.Factory
- Enclosing class:
ModuleLayerFromSingleClassLoaderDecorator
public static enum ModuleLayerFromSingleClassLoaderDecorator.Factory
extends Enum<ModuleLayerFromSingleClassLoaderDecorator.Factory>
implements ClassLoaderDecorator.Factory
A factory for creating a single module from a
module-info class file, if available.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Nested classes/interfaces inherited from interface ClassLoaderDecorator.Factory
ClassLoaderDecorator.Factory.NoOp -
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake(ClassLoader classLoader, Map<String, byte[]> typeDefinitions) Creates a class loader decorator for the given class loader and type definitions.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance of this factory.
-
-
Constructor Details
-
Factory
private Factory()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
make
public ClassLoaderDecorator make(@MaybeNull ClassLoader classLoader, Map<String, byte[]> typeDefinitions) Creates a class loader decorator for the given class loader and type definitions.- Specified by:
makein interfaceClassLoaderDecorator.Factory- Parameters:
classLoader- The class loader to decorate ornullif the bootstrap class loader is used.typeDefinitions- A map of type names to their binary representations for types being loaded.- Returns:
- A class loader decorator instance.
-